Comparing version 0.1.1 to 0.1.2
@@ -23,3 +23,3 @@ var crypto = require('crypto'); | ||
var encrypted = cipher.update(value, 'utf8', 'binary') + cipher.final('binary'); | ||
var hexVal = new Buffer(encrypted, 'binary'); | ||
var hexVal = Buffer.from(encrypted, 'binary'); | ||
var newEncrypted = hexVal.toString('hex'); | ||
@@ -26,0 +26,0 @@ |
{ | ||
"name": "rdcrypto", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "rdcrypto - unified library for encrypt/decrypt values", | ||
@@ -5,0 +5,0 @@ "main": "lib/rdcrypto.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
61437
0