Skip to content

Commit 3e28327

Browse files
committed
Removed output encoding
1 parent d314686 commit 3e28327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cipher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function encryptIV(rawData) {
2727

2828
var encodeKey = crypto.createHash('sha256').update(PASSWORD, 'utf-8').digest();
2929
var cipher = crypto.createCipheriv(ALGORYTHM, encodeKey, VECTOR);
30-
return cipher.update(rawData, 'utf-8', 'base64') + cipher.final('base64');
30+
return cipher.update(rawData, 'utf-8') + cipher.final();
3131
}
3232

3333
function decryptIV(encData, options) {

0 commit comments

Comments
 (0)