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 - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

CHANGELOG.md

@@ -13,1 +13,5 @@ ## 0.1.0 (3/7/2014)

+ Fixed module export
## 0.2.2 (3/7/2014)
+ Fixed typo in payload

8

lib/krypt.js

@@ -10,3 +10,3 @@ /*!

var CYPHER = 'aes-256-cbc',
var CIPHER = 'aes-256-cbc',
KEY_DERIVATION = 'pbkdf2',

@@ -65,3 +65,3 @@ DEFAULT_KEY_LENGTH = 32,

var key = crypto.pbkdf2Sync(secret, salt, this.iterations, this.keyLength),
cipher = crypto.createCipheriv(CYPHER, key, iv);
cipher = crypto.createCipheriv(CIPHER, key, iv);

@@ -72,3 +72,3 @@ var encryptedValue = cipher.update(input, 'utf8', 'base64');

return {
cypher: CYPHER,
cipher: CIPHER,
keyDerivation: KEY_DERIVATION,

@@ -124,3 +124,3 @@ keyLength: this.keyLength,

var key = crypto.pbkdf2Sync(secret, salt, iterations, keyLength),
decipher = crypto.createDecipheriv(CYPHER, key, iv);
decipher = crypto.createDecipheriv(CIPHER, key, iv);

@@ -127,0 +127,0 @@ var decryptedValue = decipher.update(input.value, 'base64', 'utf8');

{
"name": "krypt",
"version": "0.2.1",
"version": "0.2.2",
"description": "Simple, secure symmetric encryption utility for Node.",

@@ -5,0 +5,0 @@ "main": "index.js",

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