Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const crypto = require('crypto');
- let key = Buffer.from('MYKEY', 'utf8');
- const cipher = crypto.createCipher('des-ede3-cbc', key);
- password = Buffer.from('MYPASS', 'utf8');
- let encrypted = [cipher.update(password)];
- encrypted.push(cipher.final());
- encrypted = Buffer.concat(encryptedArr);
- console.log(encrypted.toString('hex'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement