|
@@ -219,7 +219,7 @@ function string2Hex(tmp) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function base64encode(bytes) {
|
|
function base64encode(bytes) {
|
|
|
- // let CryptoJS = createCryptoJS();
|
|
|
|
|
|
|
+ let CryptoJS = createCryptoJS();
|
|
|
// let hexStr = string2Hex(str);
|
|
// let hexStr = string2Hex(str);
|
|
|
// let data = CryptoJS.enc.Utf8.parse(hexStr);
|
|
// let data = CryptoJS.enc.Utf8.parse(hexStr);
|
|
|
// let base64Data = CryptoJS.enc.Base64.stringify(data);
|
|
// let base64Data = CryptoJS.enc.Base64.stringify(data);
|