mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
small security improved
This commit is contained in:
parent
211f85f16d
commit
f7cae662ef
2 changed files with 12 additions and 3 deletions
|
@ -31,10 +31,15 @@ class Loklok : MainAPI() {
|
|||
// no license found
|
||||
// thanks to https://github.com/napthedev/filmhot for providing API
|
||||
companion object {
|
||||
private val api = base64Decode("aHR0cHM6Ly9nYS1tb2JpbGUtYXBpLmxva2xvay50dg==")
|
||||
private val api = base64DecodeAPI("dg==LnQ=b2s=a2w=bG8=aS4=YXA=ZS0=aWw=b2I=LW0=Z2E=Ly8=czo=dHA=aHQ=")
|
||||
private val apiUrl = "$api/${base64Decode("Y21zL2FwcA==")}"
|
||||
private val searchApi = base64Decode("aHR0cHM6Ly9sb2tsb2suY29t")
|
||||
private const val mainImageUrl = "https://images.weserv.nl"
|
||||
|
||||
private fun base64DecodeAPI(api: String): String {
|
||||
return api.chunked(4).map { base64Decode(it) }.reversed().joinToString("")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private fun encode(input: String): String =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue