|
|
@@ -218,10 +218,10 @@ function rsaEncode(j_rsakey, text) {
|
|
|
let crypt = new JSEncrypt();
|
|
|
crypt.setPublicKey(j_rsakey);
|
|
|
let ciphertext = crypt.encrypt(text);
|
|
|
- let CryptoJS = createCryptoJS();
|
|
|
- let wordArray = CryptoJS.enc.Utf8.parse(ciphertext);
|
|
|
- let base64Data = CryptoJS.enc.Base64.stringify(wordArray).toString();
|
|
|
- return b64tohex(base64Data);
|
|
|
+ // let CryptoJS = createCryptoJS();
|
|
|
+ // let wordArray = CryptoJS.enc.Utf8.parse(ciphertext);
|
|
|
+ // let base64Data = CryptoJS.enc.Base64.stringify(wordArray).toString();
|
|
|
+ return b64tohex(ciphertext);
|
|
|
}
|
|
|
|
|
|
async function login(username, password){
|