RSA
用户名称:
密码:
提交的用户名:
提交的密码:
var rsaSubmit = function() { $("#submit_username").html(demoForm.find(':text').val()); $("#submit_password").html($we.rsa.encrypt(demoForm.find(':password').val())); return false; } demoSubmit.off("click", normalSubmit); demoSubmit.on("click", rsaSubmit); demoSubmit.click();
$we.rsa.publicKey = "C99F5B2FA7880E5224BCA8B6E6EAAF03CF0AE7CC74D881B2C532C0346B743911"; $we.rsa.maxDigit = 131; $we.rsa.encryptExp = "10001";
var startT = +new Date; $we.rsa.encrypt("123121"); $we.rsa.encrypt("123122"); $we.rsa.encrypt("123123"); $we.rsa.encrypt("123124"); $we.rsa.encrypt("123125"); $we.rsa.encrypt("123126"); $we.rsa.encrypt("123127"); $we.rsa.encrypt("123128"); $we.rsa.encrypt("123129"); var endT = +new Date; alert(endT - startT);