Crypto Server
    Preparing search index...

    Interface IBodyEncrypt

    Request body for the encryption endpoint.

    {
    "passphrase": "s3cret",
    "message": "Hello, world!",
    "publicKey": "-----BEGIN PGP PUBLIC KEY BLOCK-----..."
    }
    interface IBodyEncrypt {
        passphrase: string;
        message: string;
        publicKey: string;
        sign?: boolean;
    }
    Index
    passphrase: string

    Passphrase that unlocks the server's signing key (used with sign).

    message: string

    Plaintext message to encrypt.

    publicKey: string

    Armored PGP public key of the recipient.

    sign?: boolean

    Also sign with the server's key pair (CRYPTO_KEY_DIR).