• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • utils/src
  • Crypto
  • encryptAsymmetric

Function encryptAsymmetric

  • encryptAsymmetric(message: CryptoInput, publicKeyA: CryptoInput, secretKeyB: CryptoInput): EncryptedAsymmetric
  • Wrapper around nacl.box. Authenticated encryption of a message for a recipient's public key.

    Returns

    Encrypted message and nonce used for encryption.

    Parameters

    • message: CryptoInput

      String or byte array to be encrypted.

    • publicKeyA: CryptoInput

      Public key of the recipient. The owner will be able to decrypt the message.

    • secretKeyB: CryptoInput

      Private key of the sender. Necessary to authenticate the message during decryption.

    Returns EncryptedAsymmetric

    • Defined in packages/utils/src/Crypto.ts:190

Settings

Member Visibility

Theme

Modules

  • API Documentation
    • asset-did/src
    • augment-api/src
    • chain-helpers/src
      • Blockchain
      • ErrorHandler
      • SubscriptionPromise
    • config/src
      • ConfigService
    • core/src
      • Attestation
      • BalanceUtils
      • CType
        • Schemas
      • Claim
      • Credential
      • DelegationNodeUtils
      • PublicCredential
      • Quote
    • did/src
    • messaging/src
    • sdk-js/src
    • type-definitions/src
    • types/src
      • SubscriptionPromise
    • utils/src
      • Crypto
      • DataUtils
      • JsonSchema
      • SDKErrors
      • UUID
      • jsonabc
    • vc-export/src
      • constants
      • presentation
      • vcjsSuites
        • suites
          • KiltAttestedSuite
          • KiltIntegritySuite
          • KiltSignatureSuite
      • verification
  • Hasher
  • HashingOptions
  • Address
  • BitLength
  • CryptoInput
  • EncryptedAsymmetric
  • EncryptedAsymmetricString
  • coToUInt8
  • decryptAsymmetric
  • decryptAsymmetricAsStr
  • encodeAddress
  • encodeObjectAsStr
  • encryptAsymmetric
  • encryptAsymmetricAsStr
  • hash
  • hashStatements
  • hashStr
  • makeEncryptionKeypairFromSeed
  • makeKeypairFromSeed
  • makeKeypairFromUri
  • naclBoxPairFromSecret
  • saltedBlake2b256
  • sign
  • signStr
  • verify