Documentation ¶
Index ¶
- func DecryptDESECB(d string, key []byte) (string, error)
- func DecryptDESECBByte(d string, key []byte) ([]byte, error)
- func EntryptDesECB(data, key []byte) (string, error)
- func EntryptDesECBByte(data, key []byte) ([]byte, error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- type AES
- func (aestool *AES) Decrypt(value []byte, key string) []byte
- func (aestool *AES) DecryptBase64(value, key string) string
- func (aestool *AES) DecryptWithHex(value, key string) string
- func (aestool *AES) Encrypt(key, value []byte) ([]byte, error)
- func (aestool *AES) EncryptBase64(key, value []byte) (string, error)
- func (aestool *AES) EncryptHex(key, value []byte) (string, error)
- func (aestool *AES) ResetVector(vector []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptDESECBByte ¶ added in v0.2.1
func EntryptDesECB ¶
func EntryptDesECBByte ¶ added in v0.2.1
func PKCS5Padding ¶
func PKCS5UnPadding ¶
Types ¶
type AES ¶
type AES struct {
// contains filtered or unexported fields
}
func (*AES) DecryptBase64 ¶
func (*AES) DecryptWithHex ¶
func (*AES) ResetVector ¶
Click to show internal directories.
Click to hide internal directories.