
Implements various Message Authentication Code algorithms, including Hmac and KMAC, and features extendable-output functions for enhanced security. Offers support for secure key generation.
Message Authentication Code algorithms for Kotlin Multiplatform
The best way to keep KotlinCrypto dependencies up to date is by using the
version-catalog. Alternatively, you can use the BOM as
shown below.
// build.gradle.kts
dependencies {
// define the BOM and its version
implementation(project.dependencies.platform("org.kotlincrypto.macs:bom:0.8.0"))
// define artifacts without version
// HmacMD5
implementation("org.kotlincrypto.macs:hmac-md")
// HmacSHA1
implementation("org.kotlincrypto.macs:hmac-sha1")
// HmacSHA224, HmacSHA256, HmacSHA384, HmacSHA512
// HmacSHA512/t, HmacSHA512/224, HmacSHA512/256
implementation("org.kotlincrypto.macs:hmac-sha2")
// HmacKeccak224, HmacKeccak256, HmacKeccak384, HmacKeccak512
// HmacSHA3-224, HmacSHA3-256, HmacSHA3-384, HmacSHA3-512
implementation("org.kotlincrypto.macs:hmac-sha3")
// KMAC128, KMAC256
implementation("org.kotlincrypto.macs:kmac")
// BLAKE2b, BLAKE2s
implementation("org.kotlincrypto.macs:blake2")
}Message Authentication Code algorithms for Kotlin Multiplatform
The best way to keep KotlinCrypto dependencies up to date is by using the
version-catalog. Alternatively, you can use the BOM as
shown below.
// build.gradle.kts
dependencies {
// define the BOM and its version
implementation(project.dependencies.platform("org.kotlincrypto.macs:bom:0.8.0"))
// define artifacts without version
// HmacMD5
implementation("org.kotlincrypto.macs:hmac-md")
// HmacSHA1
implementation("org.kotlincrypto.macs:hmac-sha1")
// HmacSHA224, HmacSHA256, HmacSHA384, HmacSHA512
// HmacSHA512/t, HmacSHA512/224, HmacSHA512/256
implementation("org.kotlincrypto.macs:hmac-sha2")
// HmacKeccak224, HmacKeccak256, HmacKeccak384, HmacKeccak512
// HmacSHA3-224, HmacSHA3-256, HmacSHA3-384, HmacSHA3-512
implementation("org.kotlincrypto.macs:hmac-sha3")
// KMAC128, KMAC256
implementation("org.kotlincrypto.macs:kmac")
// BLAKE2b, BLAKE2s
implementation("org.kotlincrypto.macs:blake2")
}