From fdb26c2b3f30955e5d9aee4caff14ce1ad5340d2 Mon Sep 17 00:00:00 2001 From: ag2s20150909 Date: Fri, 9 Apr 2021 06:28:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B9=E6=B3=95=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/JsExtensions.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/JsExtensions.kt b/app/src/main/java/io/legado/app/help/JsExtensions.kt index 489e52b30..64d8d0893 100644 --- a/app/src/main/java/io/legado/app/help/JsExtensions.kt +++ b/app/src/main/java/io/legado/app/help/JsExtensions.kt @@ -424,7 +424,7 @@ interface JsExtensions { * @param transformation AES加密的方式 * @param iv ECB模式的偏移向量 */ - fun aesEncodeByteArray( + fun aesEncodeToByteArray( data: String, key: String, transformation: String, iv: String = "" ): ByteArray? { @@ -443,11 +443,11 @@ interface JsExtensions { * @param transformation AES加密的方式 * @param iv ECB模式的偏移向量 */ - fun aesEncodeString( + fun aesEncodeToString( data: String, key: String, transformation: String, iv: String = "" ): String? { - return aesEncodeByteArray(data, key, transformation, iv)?.let { String(it) } + return aesEncodeToByteArray(data, key, transformation, iv)?.let { String(it) } } /** @@ -457,7 +457,7 @@ interface JsExtensions { * @param transformation AES加密的方式 * @param iv ECB模式的偏移向量 */ - fun aesBase64EncodeByteArray( + fun aesEncodeToBase64ByteArray( data: String, key: String, transformation: String, iv: String = "" ): ByteArray? { @@ -476,11 +476,11 @@ interface JsExtensions { * @param transformation AES加密的方式 * @param iv ECB模式的偏移向量 */ - fun aesBase64EncodeString( + fun aesEncodeToBase64String( data: String, key: String, transformation: String, iv: String = "" ): String? { - return aesBase64EncodeByteArray(data, key, transformation, iv)?.let { String(it) } + return aesEncodeToBase64ByteArray(data, key, transformation, iv)?.let { String(it) } } }