Documentation ¶
Index ¶
- Variables
- func Decode(input, key []byte) ([]byte, error)
- func DecodeCBC(input, key, iv []byte) ([]byte, error)
- func DecodeEcbBase64(inputStr string) ([]byte, error)
- func DefaultDecode(input []byte) ([]byte, error)
- func DefaultDecodeBase64(inputStr string) ([]byte, error)
- func DefaultEncode(input []byte) ([]byte, error)
- func EncodeCBC(input, key, iv []byte) ([]byte, error)
- func EncodeECB(input, key []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultEcb = []byte{'J', 'e', 'F', '8', 'U', '9', 'w', 'H', 'F', 'O', 'M', 'f', 's', '2', 'Y', '8'}
ecb mode
View Source
var DefaultInfo = []byte{'1', '1', 'H', 'D', 'E', 'S', 'a', 'A', 'h', 'i', 'H', 'H', 'u', 'g', 'D', 'z'}
cbc mode
View Source
var DefaultIv = []byte{'U', 'I', 'S', 'w', 'D', '9', 'f', 'W', '6', 'c', 'F', 'h', '9', 'S', 'N', 'S'}
Functions ¶
func DefaultDecode ¶
func DefaultDecodeBase64 ¶
先base64解码,然后sm4解密
func DefaultEncode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.