File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
shared/src/commonMain/kotlin/dev/dimension/flare/data/network/xqt/elonmusk114514 Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,11 @@ import dev.whyoleg.cryptography.CryptographyProvider
66import dev.whyoleg.cryptography.algorithms.SHA256
77import io.ktor.client.request.get
88import io.ktor.client.statement.bodyAsText
9- import io.ktor.util.decodeBase64Bytes
10- import io.ktor.util.encodeBase64
11- import kotlinx.serialization.Serializable
129import kotlin.experimental.xor
10+ import kotlin.io.encoding.Base64
1311import kotlin.random.Random
1412import kotlin.time.Clock
13+ import kotlinx.serialization.Serializable
1514
1615internal object ElonMusk1145141919810 {
1716 @Serializable
@@ -29,9 +28,9 @@ internal object ElonMusk1145141919810 {
2928 .hasher()
3029 .hash(data.encodeToByteArray())
3130
32- fun encodeBase64 (data : ByteArray ): String = data.encodeBase64( )
31+ fun encodeBase64 (data : ByteArray ): String = Base64 .encode(data )
3332
34- fun decodeBase64 (data : String ): ByteArray = data.decodeBase64Bytes( )
33+ fun decodeBase64 (data : String ): ByteArray = Base64 .decode(data )
3534
3635 suspend fun senpaiSukissu (
3736 method : String ,
You can’t perform that action at this time.
0 commit comments