sha1 implementation + helper funcs

This commit is contained in:
joe-conigliaro 2019-07-16 01:49:01 +10:00 committed by Alexander Medvednikov
parent 37aff9b107
commit a7529b7b05
9 changed files with 454 additions and 3 deletions

View file

@ -0,0 +1,5 @@
import crypto.sha1
fn test_crypto_sha1() {
assert sha1.sum('This is a sha1 hash.'.bytes()).hex() == '6FF5FA4D5166D5C2576FE56ED1EC2D5AB0FDF936'
}