Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var crypto = require('crypto');
- var cipher = crypto.createCipher('aes-256-cbc','InmbuvP6Z8')
- var text = "123|123123123123123";
- var crypted = cipher.update(text,'utf8','hex')
- crypted += cipher.final('hex')
- var decipher = crypto.createDecipher('aes-256-cbc','InmbuvP6Z8')
- var dec = decipher.update(crypted,'hex','utf8')
- dec += decipher.final('utf8')
Add Comment
Please, Sign In to add comment