@salvobee/crypto-vault
    Preparing search index...

    Function wrapKeyForRecipient

    • Wrap an AES key for a recipient using their RSA-OAEP public key.

      Parameters

      • recipientPublicKey: CryptoKey

        The RSA-OAEP public key of the recipient.

      • keyToWrap: CryptoKey

        The AES key to wrap.

      Returns Promise<string>

      The wrapped key as a Base64URL encoded string.