mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
sha1 implementation + helper funcs
This commit is contained in:
parent
37aff9b107
commit
a7529b7b05
9 changed files with 454 additions and 3 deletions
5
vlib/crypto/sha1/sha1_test.v
Normal file
5
vlib/crypto/sha1/sha1_test.v
Normal file
|
@ -0,0 +1,5 @@
|
|||
import crypto.sha1
|
||||
|
||||
fn test_crypto_sha1() {
|
||||
assert sha1.sum('This is a sha1 hash.'.bytes()).hex() == '6FF5FA4D5166D5C2576FE56ED1EC2D5AB0FDF936'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue