Skip to content
HOA PHAN edited this page Mar 13, 2022 · 1 revision
fun String.sha256(): String {
    val md = MessageDigest.getInstance("SHA-256")
    return BigInteger(1, md.digest(toByteArray())).toString(16).padStart(32, '0')
}
echo -n "[email protected]" | shasum -a 256

eye

Clone this wiki locally