Documentation ¶
Index ¶
- func MD5(data []byte) []byte
- func MD5Hex(data string) []byte
- func MD5HexToString(data string) string
- type AesECB
- func (c *AesECB) Decrypt(encrypted []byte) []byte
- func (c *AesECB) DecryptFrom(encrypted string, decoder StringDecoder) (decrypted string, err error)
- func (c *AesECB) DecryptFromBase64(encrypted string) (decrypted string, err error)
- func (c *AesECB) DecryptFromHex(encrypted string) (decrypted string, err error)
- func (c *AesECB) Encrypt(data []byte) (encrypted []byte)
- func (c *AesECB) EncryptTo(data string, encoder StringEncoder) string
- func (c *AesECB) EncryptToBase64(data string) string
- func (c *AesECB) EncryptToHex(data string) string
- type AesECBOptions
- type Crypto
- type Hash
- type StringDecoder
- type StringEncoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MD5HexToString ¶
Types ¶
type AesECB ¶
type AesECB struct {
// contains filtered or unexported fields
}
func (*AesECB) DecryptFrom ¶
func (c *AesECB) DecryptFrom(encrypted string, decoder StringDecoder) (decrypted string, err error)
func (*AesECB) DecryptFromBase64 ¶
func (*AesECB) DecryptFromHex ¶
func (*AesECB) EncryptToBase64 ¶
func (*AesECB) EncryptToHex ¶
type AesECBOptions ¶
type AesECBOptions func(*AesECB)
func WithPool ¶
func WithPool(preSize int) AesECBOptions
type StringDecoder ¶
type StringEncoder ¶
Click to show internal directories.
Click to hide internal directories.