SHARE
TWEET

Untitled

a guest Dec 30th, 2018 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.jCryption.getKeys("../account/getPublicKey.srvc?generateKeypair=true",
  2. function(receivedKeys) {
  3.         var user = $("#userNameId").val();
  4.         var password = $("#passwordId").val();
  5.         $.jCryption.encrypt(user, receivedKeys, function(encrypted) {
  6.             $.jCryption.encrypt(password, receivedKeys, function(encryptedPasswd) {
  7.     $("#userNameHiddenId").val(encrypted);
  8.     $("#passwordHiddenId").val(encryptedPasswd);
  9.     validateAndSubmitLogin('form#loginForm');
  10.             });
  11.         });
  12.     });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top