komputing / KHash

Different hash functions in Kotlin (SHA3 with Keccak and Shake variants, sha256, ripemd160)
MIT License
54 stars 10 forks source link

Support for Kotlin Native - SHA256 #24

Open BierDav opened 1 year ago

BierDav commented 1 year ago

As the title already suggests, this is a feature request to get also the sha256 package for native so that it becomes truly multiplatform

luca992 commented 1 year ago

I made a pr a while ago #23. They haven't replied 🙃

published the artifacts in that forked repo here:

maven {
    name = "luca992/KHash GitHub Packages"
    url = uri("https://maven.pkg.github.com/luca992/KHash")
    credentials {
        username = "token"
        // see: https://github.community/t/download-from-github-package-registry-without-authentication/14407/44
        password =
            "\u0067\u0068\u0070\u005f\u0072\u0067\u0070\u0054\u0069\u006c\u004c\u0042\u0038\u006c\u0066\u0057\u0045\u0056\u0031\u0053\u004a\u006d\u0061\u006b\u004a\u004c\u005a\u0063\u0038\u004d\u0074\u0038\u0045\u0066\u0031\u0059\u0053\u0058\u0039\u0055"
    }
}
val commonMain by getting {
    dependencies {
        implementation("com.github.luca992.khash.keccak:1.1.3-nativempp")
        implementation("com.github.luca992.khash.ripemd160:1.1.3-nativempp")
        implementation("com.github.luca992.khash.sha256:1.1.3-nativempp")
        implementation("com.github.luca992.khash.sha512:1.1.3-nativempp")
    }
}
ligi commented 1 year ago

oh sorry - missed this one - will have a look now