Crypto: {
decrypt(key, cipherText) => Promise<undefined | ArrayBuffer>;
encrypt(key, plainText) => Promise<ArrayBuffer>;
}
Type declaration
-
decrypt:function
- decrypt(key, cipherText): Promise<undefined | ArrayBuffer>
-
Parameters
-
key: ArrayBuffer
-
cipherText: ArrayBuffer
Returns Promise<undefined | ArrayBuffer>
-
encrypt:function
- encrypt(key, plainText): Promise<ArrayBuffer>
-
Parameters
-
key: ArrayBuffer
-
plainText: ArrayBuffer
Returns Promise<ArrayBuffer>
Crypto utility object Remember ever Node Buffer is an ArrayBuffer