This commit is contained in:
@@ -15,7 +15,7 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("com.infendro:mac:1.4.0")
|
||||
implementation("com.infendro:mac:1.5.0")
|
||||
}
|
||||
```
|
||||
|
||||
@@ -24,7 +24,7 @@ dependencies {
|
||||
```kotlin
|
||||
fun main() {
|
||||
// create an HMAC instance using SHA1
|
||||
val hmac = HMAC(SHA1)
|
||||
val hmac = HMAC(SHA1())
|
||||
|
||||
// generate MAC
|
||||
val key = "secret".encodeToByteArray()
|
||||
|
||||
Reference in New Issue
Block a user