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.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
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 encryptedSync = krypt.encrypt('Input Value', 'someSecretValue');

krypt.encrypt(encrypted, 'someSecretValue', function (err, encryptedAsync) {
  // async encrypt
});

Decryption

var krypt = require('krypt');

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

krypt.decrypt(encrypted, 'someSecretValue', function (err, plainTextAsync) {
  // async decrypt
});

Algorithms

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

  • AES 256
  • CBC
  • Key Stretching w/ PBKDF2 @ 128,000 iterations (default)
  • Random IV / encrypted value
  • Random salt / encrypted value
  • sha512 digest

Keywords

FAQs

Package last updated on 25 Feb 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

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