Documentation ¶
Index ¶
- type CryptoUtil
- func (_aes *CryptoUtil) DecryptAes(src []byte, key []byte) (string, error)
- func (_aes *CryptoUtil) DecryptAesBase64(src string, key []byte) (string, error)
- func (_aes *CryptoUtil) DecryptAesHex(src string, key []byte) (string, error)
- func (_aes *CryptoUtil) EncryptAes(src []byte, key []byte) ([]byte, error)
- func (_aes *CryptoUtil) EncryptAesBase64(src []byte, key []byte) (string, error)
- func (_aes *CryptoUtil) EncryptAesBase64Str(src string, key []byte) (string, error)
- func (_aes *CryptoUtil) EncryptAesHex(src []byte, key []byte) (string, error)
- func (_aes *CryptoUtil) EncryptAesHexStr(src string, key []byte) (string, error)
- func (_aes *CryptoUtil) EncryptAesStr(src string, key []byte) ([]byte, error)
- func (c *CryptoUtil) Md5Hex(bytes []byte) string
- func (c *CryptoUtil) Md5HexStr(str string) string
- func (c *CryptoUtil) Sha1Hex(bytes []byte) string
- func (c *CryptoUtil) Sha1HexStr(str string) string
- func (c *CryptoUtil) Sha256Hex(bytes []byte) string
- func (c *CryptoUtil) Sha256HexStr(str string) string
- func (c *CryptoUtil) Sha512Hex(bytes []byte) string
- func (c *CryptoUtil) Sha512HexStr(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoUtil ¶
type CryptoUtil struct { }
func (*CryptoUtil) DecryptAes ¶
func (_aes *CryptoUtil) DecryptAes(src []byte, key []byte) (string, error)
func (*CryptoUtil) DecryptAesBase64 ¶
func (_aes *CryptoUtil) DecryptAesBase64(src string, key []byte) (string, error)
func (*CryptoUtil) DecryptAesHex ¶
func (_aes *CryptoUtil) DecryptAesHex(src string, key []byte) (string, error)
func (*CryptoUtil) EncryptAes ¶
func (_aes *CryptoUtil) EncryptAes(src []byte, key []byte) ([]byte, error)
ECB
func (*CryptoUtil) EncryptAesBase64 ¶
func (_aes *CryptoUtil) EncryptAesBase64(src []byte, key []byte) (string, error)
func (*CryptoUtil) EncryptAesBase64Str ¶
func (_aes *CryptoUtil) EncryptAesBase64Str(src string, key []byte) (string, error)
func (*CryptoUtil) EncryptAesHex ¶
func (_aes *CryptoUtil) EncryptAesHex(src []byte, key []byte) (string, error)
func (*CryptoUtil) EncryptAesHexStr ¶
func (_aes *CryptoUtil) EncryptAesHexStr(src string, key []byte) (string, error)
func (*CryptoUtil) EncryptAesStr ¶
func (_aes *CryptoUtil) EncryptAesStr(src string, key []byte) ([]byte, error)
func (*CryptoUtil) Md5Hex ¶
func (c *CryptoUtil) Md5Hex(bytes []byte) string
func (*CryptoUtil) Md5HexStr ¶
func (c *CryptoUtil) Md5HexStr(str string) string
func (*CryptoUtil) Sha1Hex ¶
func (c *CryptoUtil) Sha1Hex(bytes []byte) string
func (*CryptoUtil) Sha1HexStr ¶
func (c *CryptoUtil) Sha1HexStr(str string) string
func (*CryptoUtil) Sha256Hex ¶
func (c *CryptoUtil) Sha256Hex(bytes []byte) string
func (*CryptoUtil) Sha256HexStr ¶
func (c *CryptoUtil) Sha256HexStr(str string) string
func (*CryptoUtil) Sha512Hex ¶
func (c *CryptoUtil) Sha512Hex(bytes []byte) string
func (*CryptoUtil) Sha512HexStr ¶
func (c *CryptoUtil) Sha512HexStr(str string) string
Click to show internal directories.
Click to hide internal directories.