Update Home
1 parent
d26ee7ff87
commit
1801228f2d
1 file changed
-13
-13
@@ -33,16 +33,3 @@ dependencies {
|
||||
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