feat: add HmacMd5WithBase64

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

No files matched your search

+11
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"