pastebin

Paste Search Dynamic
Recent pastes
EncryptText
  1. function EncryptText()
  2. {
  3. var text = document.getElementById('textbox').value;
  4. var Key = CryptoJS.enc.Hex.parse("PSVJQRk9QTEpNVU1DWUZCRVFGV1VVT0=");
  5. var IV = CryptoJS.enc.Hex.parse("YWlFLVEZZUFNaWl=");
  6. var encryptedText = CryptoJS.AES.encrypt(text, Key, {iv: IV, mode: CryptoJS.mode.CBC, padding:     CryptoJS.pad.Pkcs7});
  7. //var decrypted = CryptoJS.AES.decrypt(encrypted, "Secret Passphrase");
  8. var encrypted = document.getElementById('encrypted');
  9. encrypted.value = encryptedText;
  10. }
Parsed in 0.007 seconds