|
|
@ -118,6 +118,8 @@ let 图片解密 = function(key,iv,kiType,mode) { |
|
|
|
} else if (kiType === "Hex") { |
|
|
|
} else if (kiType === "Hex") { |
|
|
|
bytes = hexStringToBytes(str); |
|
|
|
bytes = hexStringToBytes(str); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
bytes = FileUtil.String(str).getBytes(); |
|
|
|
|
|
|
|
/* |
|
|
|
let javaImport = new JavaImporter(); |
|
|
|
let javaImport = new JavaImporter(); |
|
|
|
javaImport.importPackage( |
|
|
|
javaImport.importPackage( |
|
|
|
Packages.com.example.hikerview.utils, |
|
|
|
Packages.com.example.hikerview.utils, |
|
|
@ -127,8 +129,9 @@ let 图片解密 = function(key,iv,kiType,mode) { |
|
|
|
Packages.javax.crypto.spec |
|
|
|
Packages.javax.crypto.spec |
|
|
|
); |
|
|
|
); |
|
|
|
with(javaImport) { |
|
|
|
with(javaImport) { |
|
|
|
bytes = String(str).getBytes(); |
|
|
|
bytes = FileUtil.String(str).getBytes(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
} |
|
|
|
} |
|
|
|
return bytes; |
|
|
|
return bytes; |
|
|
|
} |
|
|
|
} |
|
|
|