|
@@ -31,7 +31,7 @@ function decryptPrivityKey(message) {
|
|
|
// var iv = 'Zh4A7bOY2ksp9oIn'
|
|
|
|
|
|
var encrypted = message; //python is base64 ECB
|
|
|
- var key = process.env.DENET_CRYPT_KEY //key used in Python
|
|
|
+ var key = process.env.DENET_CRYPT_KEY
|
|
|
var iv = process.env.DENET_CRYPT_IV
|
|
|
if (!key || !iv) {
|
|
|
logger.error('decryptPrivityKey key or iv is empty?');
|
|
@@ -49,8 +49,8 @@ function decryptPrivityKey(message) {
|
|
|
return de_pk
|
|
|
}
|
|
|
|
|
|
-// console.log('decryptPrivityKey',decryptPrivityKey('8C9oepm9euh9UwPfqVf0QaP5qUjZsghT/rRlM3I1NemLACM8N4yx0wHgHnH5sZGM/ai5yg1MJnJMbfmApss/y5Chq8Ys+mZjIVrru2IWl/I='))
|
|
|
-
|
|
|
+// console.log('decryptPrivityKey 1',decryptPrivityKey('8C9oepm9euh9UwPfqVf0QaP5qUjZsghT/rRlM3I1NemLACM8N4yx0wHgHnH5sZGM/ai5yg1MJnJMbfmApss/y5Chq8Ys+mZjIVrru2IWl/I='))
|
|
|
+// console.log('decryptPrivityKey 2',decryptPrivityKey('4Uz4Jm7Xd1gH+1nFbR0B7hk1ITmsT8O3iAgS/hC0L9TkrqAZoklsQhXl4fA1X+uqpckF4HtnXnMpwng94GvvzsRfXYirfDfboneuzfc0o7s='))
|
|
|
// 密钥
|
|
|
const SECRET_KEY = CryptoJS.enc.Utf8.parse(cryppt_config.WITHDRAW_KEY);
|
|
|
// 密钥偏移量
|