Versions in this module Expand all Collapse all v1 v1.0.0 Dec 27, 2020 Changes in this version + const AesBlockSize + func Md5File(file io.Reader) (string, error) + func Md5FileByPath(path string) (string, error) + func Md5String(data []byte) string + func Sha1String(data []byte) string + type AesCBCCrypter struct + func NewAesCBCCrypter(key []byte, iv []byte) (*AesCBCCrypter, error) + func (a *AesCBCCrypter) BlockSize() int + func (a *AesCBCCrypter) Decrypt(crypted []byte) []byte + func (a *AesCBCCrypter) Encrypt(data []byte) []byte + func (a *AesCBCCrypter) SetPadding(padding PaddingInterface) + type PKCS5Padding struct + BlockSize int + func (p *PKCS5Padding) Padding(data []byte) []byte + func (p *PKCS5Padding) UnPadding(data []byte) []byte + type PaddingInterface interface + Padding func(data []byte) []byte + UnPadding func(data []byte) []byte