|
@@ -121,8 +121,7 @@ async function getRandomString16() {
|
|
}
|
|
}
|
|
export async function AES_CBC_ENCRYPT(val) {
|
|
export async function AES_CBC_ENCRYPT(val) {
|
|
const IV = await getRandomString16();
|
|
const IV = await getRandomString16();
|
|
- // const KEY = window.android.getGlobalParam('key');
|
|
|
|
- const KEY = '05f8f563b95103e1';
|
|
|
|
|
|
+ const KEY = window.android.getGlobalParam('key');
|
|
const secretKey = CryptoJS.enc.Utf8.parse(KEY);
|
|
const secretKey = CryptoJS.enc.Utf8.parse(KEY);
|
|
const ivk = CryptoJS.enc.Utf8.parse(IV);
|
|
const ivk = CryptoJS.enc.Utf8.parse(IV);
|
|
let ivHex = CryptoJS.enc.Base64.stringify(ivk);
|
|
let ivHex = CryptoJS.enc.Base64.stringify(ivk);
|