ft-encryption
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -23,4 +23,4 @@ 'use strict'; | ||
let cipher = crypto.createCipher(this.algorithm, this.key); | ||
let data = cipher.update(str, 'utf8', 'base64'); | ||
data += cipher.final('base64'); | ||
let data = cipher.update(str, 'utf8', 'hex'); | ||
data += cipher.final('hex'); | ||
return data; | ||
@@ -37,3 +37,3 @@ }; | ||
let result = null; | ||
let str = cipher.update(encrypted, 'base64', 'utf8'); | ||
let str = cipher.update(encrypted, 'hex', 'utf8'); | ||
str += cipher.final('utf8'); | ||
@@ -40,0 +40,0 @@ result = JSON.parse(str); |
{ | ||
"name": "ft-encryption", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "encryption wrapper", | ||
@@ -5,0 +5,0 @@ "main": "lib/encryption.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
4164