You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private fun createUsername(deviceId: String): String {
val key = "3go8&$8*3*3h0k(2)2".toByteArray()
val secondString =
deviceId.toByteArray().mapIndexed { index, oldByte -> oldByte.xor(key[index % key.size]) }
.toByteArray().md5().encodedAsBase64String()
return "$deviceId $secondString".toByteArray().encodedAsBase64String()
}
Ported to Kotlin by me from other's code.
Binaryify's key seems faulty.
My base URL: https://interface.music.163.com/eapi/
Sorry that I don't know Dart, and maybe you don't know Kotlin either. But I still believe the above snippet is readable enough for you.
The text was updated successfully, but these errors were encountered:
Ported to Kotlin by me from other's code.
Binaryify's key seems faulty.
My base URL: https://interface.music.163.com/eapi/
Sorry that I don't know Dart, and maybe you don't know Kotlin either. But I still believe the above snippet is readable enough for you.
The text was updated successfully, but these errors were encountered: