Type alias Crypto

Crypto: {
    decrypt(key, cipherText) => Promise<undefined | ArrayBuffer>;
    encrypt(key, plainText) => Promise<ArrayBuffer>;
}

Crypto utility object Remember ever Node Buffer is an ArrayBuffer

Type declaration

  • decrypt:function
    • Parameters

      • key: ArrayBuffer
      • cipherText: ArrayBuffer

      Returns Promise<undefined | ArrayBuffer>

  • encrypt:function
    • Parameters

      • key: ArrayBuffer
      • plainText: ArrayBuffer

      Returns Promise<ArrayBuffer>

Generated using TypeDoc