mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
crypto: add utility hexhash functions
This commit is contained in:
committed by
Alexander Medvednikov
parent
bb9eec8696
commit
93716ee944
@@ -146,3 +146,5 @@ fn block(dig &Digest, p []byte) {
|
||||
pub fn (d &Digest) size() int { return Size }
|
||||
|
||||
pub fn (d &Digest) block_size() int { return BlockSize }
|
||||
|
||||
pub fn hexhash(s string) string { return sum(s.bytes()).hex() }
|
||||
|
||||
Reference in New Issue
Block a user