Skip to main content

decryptString

Decrypts an encrypted string using AES-256-CBC.

  • import the method
import { decryptString, generateRandomBytes } from "nodelpers";
  • params
encryptedText: string;
key: Buffer<ArrayBufferLike>;
  • usage
decryptString(encryptedText, generateRandomBytes(32));