encryptString
Encrypts a string using AES-256-CBC.
- import the method
import { encryptString, generateRandomBytes } from "nodelpers";
- params
text: string;
key: Buffer<ArrayBufferLike>;
- usage
encryptString("Hello World!", generateRandomBytes(32));
Encrypts a string using AES-256-CBC.
import { encryptString, generateRandomBytes } from "nodelpers";
text: string;
key: Buffer<ArrayBufferLike>;
encryptString("Hello World!", generateRandomBytes(32));