Socket
Book a DemoInstallSign in
Socket

win-protect

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

win-protect

Node Addon for CryptProtectData/CryptUnprotectData of Win32 API to encrypt/decrypt data

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

win-protect

Node Addon for CryptProtectData/CryptUnprotectData of Win32 API to encrypt/decrypt data

"Typically, only a user with the same logon credential as the user who encrypted the data can decrypt the data. In addition, the encryption and decryption usually must be done on the same computer" CryptProtectData Win32 documentation

By combining with an additional password this could be a powerfull tool to store passwords, api keys or any secret securely

Donate

Installation

npm install win-protect

Examples

Encrypting data

const wp = require("win-protect");

const input = Buffer.from("secret");

const encrypted = wp.encrypt(input);

const decrypted = wp.decrypt(encrypted);

Encrypting data with additional password

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);

Keywords

encrypt

FAQs

Package last updated on 04 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.