This commit is contained in:
@@ -15,7 +15,7 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("com.infendro:kdf:1.2.0")
|
||||
implementation("com.infendro:kdf:1.2.1")
|
||||
}
|
||||
```
|
||||
|
||||
@@ -25,7 +25,7 @@ dependencies {
|
||||
fun main() {
|
||||
// create a PBKDF2 instance using HMAC SHA-256
|
||||
// this example uses 32 bytes of length and 100_000 iterations
|
||||
val kdf = PBKDF2(32, 100_000, `SHA-256`)
|
||||
val kdf = PBKDF2(32, 100_000, `SHA-256`())
|
||||
|
||||
// securely hash value with some salt
|
||||
val value = "password".encodeToByteArray()
|
||||
|
||||
Reference in New Issue
Block a user