HentaiNexus: Fix length=7; index=7 (#736)
This commit is contained in:
parent
2a287d7398
commit
0d1497285f
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = "HentaiNexus"
|
extName = "HentaiNexus"
|
||||||
extClass = ".HentaiNexus"
|
extClass = ".HentaiNexus"
|
||||||
extVersionCode = 5
|
extVersionCode = 6
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ import kotlinx.serialization.json.jsonObject
|
||||||
import kotlinx.serialization.json.jsonPrimitive
|
import kotlinx.serialization.json.jsonPrimitive
|
||||||
import okhttp3.HttpUrl.Companion.toHttpUrl
|
import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||||
import okhttp3.Request
|
import okhttp3.Request
|
||||||
import okhttp3.Response
|
|
||||||
import org.jsoup.nodes.Document
|
import org.jsoup.nodes.Document
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
import rx.Observable
|
import rx.Observable
|
||||||
|
|
|
@ -5,7 +5,7 @@ import android.util.Base64
|
||||||
object HentaiNexusUtils {
|
object HentaiNexusUtils {
|
||||||
fun decryptData(data: String): String = decryptData(Base64.decode(data, Base64.DEFAULT))
|
fun decryptData(data: String): String = decryptData(Base64.decode(data, Base64.DEFAULT))
|
||||||
|
|
||||||
private val primeNumbers = listOf(2, 3, 5, 7, 11, 13, 17)
|
private val primeNumbers = listOf(2, 3, 5, 7, 11, 13, 17, 19)
|
||||||
|
|
||||||
private fun decryptData(data: ByteArray): String {
|
private fun decryptData(data: ByteArray): String {
|
||||||
val keyStream = data.slice(0 until 64).map { it.toUByte().toInt() }
|
val keyStream = data.slice(0 until 64).map { it.toUByte().toInt() }
|
||||||
|
|
Loading…
Reference in New Issue