import "crypto/aes"
aes包实现了AES加密算法,参见U.S. Federal Information Processing Standards Publication 197。
Constants
type KeySizeError
func (k KeySizeError) Error() string
func NewCipher(key []byte) (cipher.Block, error)
const BlockSize = 16
AES字节块大小。
type KeySizeError int
创建一个cipher.Block接口。参数key为密钥,长度只能是16、24、32字节,用以选择AES-128、AES-192、AES-256。
To view this video please enable JavaScript,and consider upgrading to a web browser that supports HTML5 video
This is a modal window.
Beginning of dialog window.Escape will cancel and close the window.
End of dialog window.