|
|
@ -1,6 +1,7 @@ |
|
|
|
package io.legado.app.model.analyzeRule |
|
|
|
package io.legado.app.model.analyzeRule |
|
|
|
|
|
|
|
|
|
|
|
import android.text.TextUtils |
|
|
|
import android.text.TextUtils |
|
|
|
|
|
|
|
import android.util.Base64 |
|
|
|
import androidx.annotation.Keep |
|
|
|
import androidx.annotation.Keep |
|
|
|
import io.legado.app.constant.AppConst.SCRIPT_ENGINE |
|
|
|
import io.legado.app.constant.AppConst.SCRIPT_ENGINE |
|
|
|
import io.legado.app.constant.Pattern.JS_PATTERN |
|
|
|
import io.legado.app.constant.Pattern.JS_PATTERN |
|
|
@ -576,8 +577,8 @@ class AnalyzeRule(private var book: BaseBook? = null) { |
|
|
|
return EncoderUtils.base64Decode(str) |
|
|
|
return EncoderUtils.base64Decode(str) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun base64Encode(str: String): String? { |
|
|
|
fun base64Encode(str: String, flags: Int = Base64.NO_WRAP): String? { |
|
|
|
return EncoderUtils.base64Encode(str) |
|
|
|
return EncoderUtils.base64Encode(str, flags) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun strToMd5By32(str: String): String? { |
|
|
|
fun strToMd5By32(str: String): String? { |
|
|
|