function generateload_Click(form1)
{
window.text="Thishasto";
window.key = "hello";
var useHashing = true;
var encrypted;
if (useHashing){
key = CryptoJS.MD5(key).toString();
}
window.options = {
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
};
window.textWordArray = CryptoJS.enc.Utf8.parse(text);
window.keyHex = CryptoJS.enc.Hex.parse(key);
window.encrypted = CryptoJS.TripleDES.encrypt(textWordArray, keyHex, options);
alert(encrypted);
}
在IE中运行时返回以下错误
错误:无法获取属性' createEncryptor'未定义或空引用。