This commit is contained in:
Claude Brisson
2024-02-26 15:09:48 +01:00
parent 71549f185e
commit 924b31d24b
13 changed files with 191 additions and 68 deletions

View File

@@ -16,3 +16,5 @@ val sharedSecret: String by lazy {
if (it.length != 16) throw RuntimeException("shared secret must be 16 ascii chars long")
}
}
fun ByteArray.toHex(): String = joinToString(separator = "") { eachByte -> "%02x".format(eachByte) }