Versions in this module Expand all Collapse all v0 v0.3.1 Aug 21, 2021 Changes in this version + const AESMethodCBC + const AESMethodCTR + const AESMethodDefault + func AESCBCDecrypt(cipherkey, ciphertext []byte, useBase64 ...bool) ([]byte, error) + func AESCBCEncrypt(cipherkey, plaintext []byte, useBase64 ...bool) []byte + func AESCTRDecrypt(cipherkey, ciphertext []byte, useBase64 ...bool) ([]byte, error) + func AESCTREncrypt(cipherkey, plaintext []byte, useBase64 ...bool) []byte + func AESDecrypt(cipherkey, ciphertext []byte, useBase64 ...bool) ([]byte, error) + func AESEncrypt(cipherkey, plaintext []byte, useBase64 ...bool) []byte + func Fnv1aToUint32(b []byte) uint32 + func Fnv1aToUint64(b []byte) uint64 + func Md5(b []byte) string + func Sha1(b []byte) string + func Sha256(b []byte) string + func Sha512(b []byte) string + type AESCodec struct + func NewAESCodec(key []byte, useBase64 bool, method ...aesMethod) *AESCodec + func (a *AESCodec) Decrypt(ciphertext []byte) ([]byte, error) + func (a *AESCodec) Encrypt(ciphertext []byte) []byte