commonMain.io.github.jan.supabase.compose.auth.Utils.common.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-auth-jvm Show documentation
Show all versions of compose-auth-jvm Show documentation
Extends gotrue-kt with Native Auth composables
package io.github.jan.supabase.compose.auth
import io.ktor.utils.io.core.toByteArray
import korlibs.crypto.SHA256
internal fun String.hash(): String {
val hash = SHA256.digest(this.toByteArray())
return hash.hex
}