Skip to content

Commit 802db95

Browse files
committed
Issue 1556: Restoring the right version.
1 parent 7d6a11e commit 802db95

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

shared/src/commonMain/kotlin/dev/dimension/flare/data/network/xqt/elonmusk114514/ElonMusk1145141919810.kt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ import dev.whyoleg.cryptography.CryptographyProvider
66
import dev.whyoleg.cryptography.algorithms.SHA256
77
import io.ktor.client.request.get
88
import io.ktor.client.statement.bodyAsText
9-
import io.ktor.util.decodeBase64Bytes
10-
import io.ktor.util.encodeBase64
11-
import kotlinx.serialization.Serializable
129
import kotlin.experimental.xor
10+
import kotlin.io.encoding.Base64
1311
import kotlin.random.Random
1412
import kotlin.time.Clock
13+
import kotlinx.serialization.Serializable
1514

1615
internal 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,

0 commit comments

Comments
 (0)