Node Addon for CryptProtectData/CryptUnprotectData of Win32 API to encrypt/decrypt data
npm install win-protect
npm install win-protect
`
Examples
$3
`javascript
const wp = require("win-protect");
const input = Buffer.from("secret");
const encrypted = wp.encrypt(input);
const decrypted = wp.decrypt(encrypted);
`
$3
`javascript
const wp = require("win-protect");
const password = Buffer.from("password123");
const input = Buffer.from("secret");
const encrypted = wp.encrypt(input, password);
const decrypted = wp.decrypt(encrypted, password);
``