pull/1259/head
gedoor 3 years ago
parent 6937184ec4
commit 05ab654cc8
  1. 6
      app/src/main/java/io/legado/app/help/JsExtensions.kt

@ -475,8 +475,8 @@ interface JsExtensions {
str: String, key: String, transformation: String, iv: String str: String, key: String, transformation: String, iv: String
): ByteArray? { ): ByteArray? {
return EncoderUtils.decryptBase64AES( return EncoderUtils.decryptBase64AES(
data = str.encodeToByteArray(), str.encodeToByteArray(),
key = key.encodeToByteArray(), key.encodeToByteArray(),
transformation, transformation,
iv.encodeToByteArray() iv.encodeToByteArray()
) )
@ -539,7 +539,7 @@ interface JsExtensions {
): ByteArray? { ): ByteArray? {
return EncoderUtils.encryptAES2Base64( return EncoderUtils.encryptAES2Base64(
data.encodeToByteArray(), data.encodeToByteArray(),
key = key.encodeToByteArray(), key.encodeToByteArray(),
transformation, transformation,
iv.encodeToByteArray() iv.encodeToByteArray()
) )

Loading…
Cancel
Save