Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

krypt

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

krypt

Simple, secure symmetric encryption utility for Node.

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Krypt: Simple, Secure, Symmetric Encryption

Krypt uses encryption best practices to produce very secure, portable JSON objects using a simple shared key.

Install

npm install -g krypt

CLI Usage

Encryption

krypt --encrypt ./path/to/file.json --secret someSecretValue --out ./path/to/new/encrypted.out

Decryption

krypt --decrypt ./path/to/new/encrypted.out --secret someSecretValue --out ./path/to/file.json

Module Usage

Encryption

var krypt = require('krypt');

var encrypted = krypt.encrypt('Input Value', 'someSecretValue');

Decryption

var krypt = require('krypt');

var plainText = krypt.decrypt(encrypted, 'someSecretValue');

Algorithms

Krypt tries to incorporate all the current encryption best practices into a simple to use module. As such, Krypt uses the following:

  • AES 256
  • CBC
  • Key Stretching w/ PBKDF2 @ 64,000 iterations
  • Random IV / encrypted value
  • Random salt / encrypted value

Keywords

FAQs

Package last updated on 07 Mar 2014

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc