We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c22e2ff commit f604899Copy full SHA for f604899
lib/cipher.js
@@ -28,7 +28,7 @@ function encryptIV(rawData) {
28
29
var encodeKey = crypto.createHash('sha256').update(PASSWORD, 'utf-8').digest();
30
var cipher = crypto.createCipheriv(ALGORYTHM, encodeKey, VECTOR);
31
- return cipher.update(rawData, 'utf-8') + cipher.final();
+ return Buffer.concat([cipher.update(new Buffer.from(rawData)),cipher.final()]);
32
}
33
34
function decryptIV(encData, options) {
0 commit comments