Check recovery password is hex if its not a mnemonic
parent
17fbe5403c
commit
3cc00caeab
@ -0,0 +1,9 @@
|
||||
package org.session.libsignal.utilities
|
||||
|
||||
private val HEX_CHARS = buildSet {
|
||||
addAll('0'..'9')
|
||||
addAll('a'..'f')
|
||||
addAll('A'..'F')
|
||||
}
|
||||
|
||||
fun String.isHex() = all { it in HEX_CHARS }
|
Loading…
Reference in New Issue