mirror of
https://github.com/kalarina-bit/Matewave.git
synced 2026-11-22 08:06:09 +00:00
Release v1.0.47
This commit is contained in:
@@ -108,7 +108,7 @@ object DeviceKeys {
|
||||
fun fingerprintOf(publicKey: String): String =
|
||||
MessageDigest.getInstance("SHA-256")
|
||||
.digest(publicKey.toByteArray(Charsets.UTF_8))
|
||||
.take(16).joinToString("") { "%02x".format(it) }
|
||||
.toHex(16)
|
||||
|
||||
fun sign(context: Context, data: String): String? {
|
||||
val privateKey: PrivateKey = keyPair(context)?.private ?: return null
|
||||
|
||||
Reference in New Issue
Block a user