1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-10 07:42:27 +08:00

update: add Md5String func and Md5File func

This commit is contained in:
dudaodong
2021-12-31 11:25:43 +08:00
parent bb4ac01209
commit e15ae9eb98
2 changed files with 4 additions and 0 deletions

View File

@@ -145,6 +145,8 @@ func HmacMd5(data, key string) string //get hmac md5 value
func HmacSha1(data, key string) string //get hmac sha1 value
func HmacSha256(data, key string) string //get hmac sha256 value
func HmacSha512(data, key string) string //get hmac sha512 value
func Md5String(s string) string //return the md5 value of string
func Md5File(filename string) (string, error) //return the md5 value of file
func Sha1(data string) string //get sha1 value
func Sha256(data string) string //getsha256 value
func Sha512(data string) string //get sha512 value