hmac

package
v1.0.7-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMAC

func GenerateMAC(plainText, key []byte) []byte

生成消息认证码 plainText 明文 key 密钥 返回 消息认证码

func VerifyMAC

func VerifyMAC(plainText, key, hashText []byte) bool

消息认证 plainText 明文 key 密钥 hashText 消息认证码 返回 是否是原消息

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL