Documentation ¶
Index ¶
- Constants
- func Base64Decode(input []byte) ([]byte, error)
- func Base64Encode(input []byte) []byte
- func DesCBCDecrypt(padding Padding, key, iv, src []byte) (out []byte, err error)
- func DesCBCEncrypt(padding Padding, key, iv, src []byte) (out []byte, err error)
- func DesECBDecrypt(padding Padding, key, src []byte) (out []byte, err error)
- func DesECBEncrypt(padding Padding, key, src []byte) (out []byte, err error)
- func MD5String(input []byte) string
- func RandDesKey() []byte
- func RandDesKeyString() string
- type Padding
Constants ¶
View Source
const DesKeyLetter = helps.StrNumberAlpha // des密鑰字串
View Source
const DesKeySize = 8 // des密鑰長度
Variables ¶
This section is empty.
Functions ¶
func DesCBCDecrypt ¶
DesCBCDecrypt des-cbc解密, 注意key的長度必須是 DesKeySize
func DesCBCEncrypt ¶
DesCBCEncrypt des-cbc加密, 注意key的長度必須是 DesKeySize
func DesECBDecrypt ¶
DesECBDecrypt des-ecb解密, 注意key的長度必須是 DesKeySize
func DesECBEncrypt ¶
DesECBEncrypt des-ecb加密, 注意key的長度必須是 DesKeySize
Types ¶
Click to show internal directories.
Click to hide internal directories.