Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Bidirectional encryption with NodeJS

node v6.17.1
version: 0.1.0
endpointsharetweet
var crypto = require('crypto'); var key = "ciw7p02f70000ysjon7gztjn7"; var pt = "72721827b4b4ee493ac09c635827c15ce014c3c3"; var encrypt = crypto.createCipher('aes256', key); var decrypt = crypto.createDecipher('aes256', key);
encrypt.update(pt, 'utf8', 'hex');
var encrypted = encrypt.final('hex')
decrypt.update(encrypted, 'hex', 'utf8')
decrypt.final()
Loading…

no comments

    sign in to comment