Documentation ¶
Index ¶
- Variables
- func AesNormalKey(key []byte) []byte
- func DecryptAes256Ecb(data, key []byte) ([]byte, error)
- func EncryptAes256Ecb(data, key []byte) ([]byte, error)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- type AesEncrypter
- type Encrypter
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var EncrypterType = reflect.TypeOf((*Encrypter)(nil)).Elem()
Functions ¶
func AesNormalKey ¶ added in v0.1.2
AesNormalKey key must be 16 24 32 bytes
func DecryptAes256Ecb ¶
func EncryptAes256Ecb ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
type AesEncrypter ¶
type AesEncrypter struct {
// contains filtered or unexported fields
}
func NewAesEncrypter ¶
func NewAesEncrypter(key []byte) *AesEncrypter
Click to show internal directories.
Click to hide internal directories.