Comparing version 0.2.1 to 0.2.2
@@ -13,1 +13,5 @@ ## 0.1.0 (3/7/2014) | ||
+ Fixed module export | ||
## 0.2.2 (3/7/2014) | ||
+ Fixed typo in payload |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11293