1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-11 08:12:26 +08:00

feat: add HmacMd5WithBase64

This commit is contained in:
dudaodong
2023-07-28 17:53:46 +08:00
parent 0ae5d17a06
commit 31eb5f4d1f
5 changed files with 97 additions and 4 deletions

View File

@@ -328,6 +328,17 @@ func ExampleHmacMd5() {
// e834306eab892d872525d4918a7a639a
}
func ExampleHmacMd5WithBase64() {
str := "hello"
key := "12345"
hms := HmacMd5WithBase64(str, key)
fmt.Println(hms)
// Output:
// 6DQwbquJLYclJdSRinpjmg==
}
func ExampleHmacSha1() {
str := "hello"
key := "12345"