Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Encryption

Hierarchy

  • Encryption

Index

Methods

Static aes256CbcDecrypt

  • aes256CbcDecrypt(iv: Buffer, key: Buffer, ciphertext: Buffer): Buffer

Static aes256CbcEncrypt

  • aes256CbcEncrypt(iv: Buffer, key: Buffer, plaintext: Buffer): Buffer

Static decryptPayload

  • decryptPayload(method: EncryptionMethod, payload: string, key?: undefined | string): string

Static encryptPayload

Static encryptionSymAES256

Static encryptionp256ECIES

Static p256ECIESDecrypt

  • p256ECIESDecrypt(privateKey: string, payload: any): Buffer
  • decrypts an ECIES encryption payload

    Parameters

    • privateKey: string

      the private key of the recipient

    • payload: any

      the ECIES payload

    Returns Buffer

Static p256ECIESEncrypt

  • p256ECIESEncrypt(publicKey: string, payload: Buffer, opts?: any): object
  • encrypts a buffer using ECIES and returns a payload containing the message and signature.

    Parameters

    • publicKey: string

      the public key of the recipient

    • payload: Buffer

      the payload buffer to encrypt

    • Optional opts: any

      optional parameters which will default if not configured

    Returns object

Generated using TypeDoc