Yokan / rebuild
Course 1 8624561

Digests.nonWeb.kt

composeApp/src/nonWebMain/kotlin/eu/friedcutlet/yokan/util/Digests.nonWeb.kt

implementation11 lines
1package eu.friedcutlet.yokan.util23import dev.whyoleg.cryptography.CryptographyProvider4import dev.whyoleg.cryptography.DelicateCryptographyApi5import dev.whyoleg.cryptography.algorithms.SHA16import dev.whyoleg.cryptography.algorithms.SHA25678actual fun sha256(data: ByteArray): ByteArray = CryptographyProvider.Default.get(SHA256).hasher().hashBlocking(data)910@OptIn(DelicateCryptographyApi::class)11actual fun sha1(data: ByteArray): ByteArray = CryptographyProvider.Default.get(SHA1).hasher().hashBlocking(data)12

Search chapters, reference and source filenames.