Versions in this module Expand all Collapse all v0 v0.1.1 Oct 9, 2021 Changes in this version + type AesEcb struct + BlockSize int + PaddingType PADDING + func NewAesEcb(blockSize int, paddingType PADDING) (*AesEcb, error) + func (ae AesEcb) Decrypt(key, plaintext []byte) ([]byte, error) + func (ae AesEcb) Encrypt(key, plaintext []byte) ([]byte, error) + func (ae AesEcb) PKCS5Padding(ciphertext []byte, blockSize int) []byte + func (ae AesEcb) PKCS5UnPadding(originData []byte) []byte + func (ae AesEcb) PKCS7Padding(ciphertext []byte, blockSize int) []byte + func (ae AesEcb) PKCS7UnPadding(originData []byte) []byte + func (ae AesEcb) ZeroPadding(ciphertext []byte, blockSize int) []byte + func (ae AesEcb) ZeroUnPadding(originData []byte) []byte + type PADDING int + const PKCS5_PADDING + const PKCS7_PADDING + const ZERO_PADDING + type Security struct + func New(key string) *Security + func (this Security) Decode(data string) (string, error) + func (this Security) Encode(data string) (r string) + func (this Security) PKCS7Pad(data []byte) []byte + func (this Security) PKCS7UPad(data []byte) []byte v0.1.0 Jul 17, 2021