1const baseString = 'konrad';
2const encodedString = window.btoa( baseString ); // "a29ucmFk"
3const decodedString = window.atob( encodedString ); //konrad
1const Cryptr = require('cryptr');
2const cryptr = new Cryptr('ReallySecretKey');
3
4const encryptedString = cryptr.encrypt('Popcorn');
5const decryptedString = cryptr.decrypt(encryptedString);
6
7console.log(encryptedString);