Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

keylock

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

keylock

Lock stuff with keys.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
9
200%
Maintainers
1
Weekly downloads
 
Created
Source

KeyLock

Lock stuff with keys.

KeyLock is a neat little wrapper around the built-in nodejs crypto module.

Well, how do i use it?

Install it npm i keylock

Require it const KeyLock = require('keylock')

Initialize it const lock = new KeyLock('some password')

Lock something const locked = lock.lock('secret message')

Unlock something const unlocked = lock.unlock(locked)

More Detail

Parameters

FunctionArguments
new KeyLockkey[, options]
.newKeykey[, options]
.lockdata[, options]
.unlockdata[, options]

Options?

OptionExample
algoritmaes-256-cbc, aes192, rc2
inputEncodingbinary, utf8, hex
outputEncodingbinary, utf8, hex
key (.unlock & .lock)cool password, some key

Keywords

encryption

FAQs

Package last updated on 27 Jun 2018

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