Update Home
13
Home.md
13
Home.md
@@ -33,16 +33,3 @@ dependencies {
|
|||||||
implementation("com.infendro:hash:1.3.2")
|
implementation("com.infendro:hash:1.3.2")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
```kotlin
|
|
||||||
import com.infendro.hash.sha2.`SHA-256`
|
|
||||||
|
|
||||||
fun main() {
|
|
||||||
// hash some value using SHA-256
|
|
||||||
val value = "Hello World!"
|
|
||||||
.encodeToByteArray().asUByteArray()
|
|
||||||
val hash = `SHA-256`.hash(value)
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|||||||
Reference in New Issue
Block a user