Initial commit

This commit is contained in:
2026-08-30 02:49:34 +08:00
commit 7e177214a9
28 files changed
+1009

No files matched your search

@@ -0,0 +1,24 @@
/*
* Copyright © 2026 RTAkland
* Author: RTAkland
* Date: 2026/8/30
*/
package test
import org.kotlincrypto.hash.md.MD5
import kotlin.test.Test
import kotlin.test.assertEquals
class TestMd5 {
@Test
fun `test md5`() {
val target = "e10adc3949ba59abbe56e057f20f883e" // 123456
val res = MD5().digest("123456".encodeToByteArray()).toHexString()
assertEquals(target, res)
}
}
@@ -0,0 +1,22 @@
/*
* Copyright © 2026 RTAkland
* Author: RTAkland
* Date: 2026/8/30
*/
package test
import cn.rtast.bldm.core.data.UserNavData
import kotlin.test.Test
class TestWbiSign {
@Test
fun `test wbi sign`() {
val imgUrl = "https://i0.hdslb.com/bfs/wbi/7cd084941338484aae1ad9425b84077c.png"
val subUrl = "https://i0.hdslb.com/bfs/wbi/4932caff0ff746eab6f01bf08b70ac45.png"
val signWbi = UserNavData(UserNavData.WbiImg(imgUrl, subUrl)).signWbi(27245513)
println(signWbi)
}
}