Crypto Lib
    Preparing search index...

    Function session

    • Generate a new session key object, taking the algorithm preferences of the passed public key into account.

      Parameters

      • data: dataSessionKey

        Data used to generate session key.

        Parameters for OpenPGP session key generation.

        • email: string

          Email address associated with the session key recipient.

        • name: string

          Display name associated with the session key recipient.

        • publicKey: string

          Armored public key of the session key recipient.

      Returns Promise<SessionKey>

      • Session key object.