function EncryptText()
{
var text = document.getElementById('textbox').value;
var Key = CryptoJS.enc.Hex.parse("0Sx0E9n0T4J4TRMNBEV+Z72OBcPpIDm+");
var IV = CryptoJS.enc.Hex.parse("YWlFLVEZZUFNaWl=");
var encryptedText = CryptoJS.AES.encrypt(text, Key, {iv: IV, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7});
//var decrypted = CryptoJS.AES.decrypt(encrypted, "Secret Passphrase");
var encrypted = document.getElementById('encrypted');
encrypted.value = encryptedText;
}
ZnVuY3Rpb24gRW5jcnlwdFRleHQoKQp7CnZhciB0ZXh0ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ3RleHRib3gnKS52YWx1ZTsKdmFyIEtleSA9IENyeXB0b0pTLmVuYy5IZXgucGFyc2UoIjBTeDBFOW4wVDRKNFRSTU5CRVYrWjcyT0JjUHBJRG0rIik7CnZhciBJViA9IENyeXB0b0pTLmVuYy5IZXgucGFyc2UoIllXbEZMVkVaWlVGTmFXbD0iKTsKdmFyIGVuY3J5cHRlZFRleHQgPSBDcnlwdG9KUy5BRVMuZW5jcnlwdCh0ZXh0LCBLZXksIHtpdjogSVYsIG1vZGU6IENyeXB0b0pTLm1vZGUuQ0JDLCBwYWRkaW5nOiAgICAgQ3J5cHRvSlMucGFkLlBrY3M3fSk7Ci8vdmFyIGRlY3J5cHRlZCA9IENyeXB0b0pTLkFFUy5kZWNyeXB0KGVuY3J5cHRlZCwgIlNlY3JldCBQYXNzcGhyYXNlIik7CnZhciBlbmNyeXB0ZWQgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnZW5jcnlwdGVkJyk7CmVuY3J5cHRlZC52YWx1ZSA9IGVuY3J5cHRlZFRleHQ7Cn0=