Versions in this module Expand all Collapse all v0 v0.0.9 Nov 16, 2024 v0.0.8 May 8, 2024 Changes in this version + type Cipher struct + func NewES256(key []byte) (*Cipher, error) + func (c *Cipher) Decrypt(ciphertext []byte) ([]byte, error) + func (c *Cipher) Encrypt(plaintext []byte) ([]byte, error) + type Crypto struct + func NewCrypto(key string) *Crypto + func (c *Crypto) ComputeSHA1HMAC(data ...string) string + func (c *Crypto) ComputeSHA256HMAC(data ...string) string + func (c *Crypto) ComputeSHA512HMAC(data ...string) string + func (c *Crypto) DecodeBASE64(text string) (string, error) + func (c *Crypto) EncodeBASE64(text string) string + func (c *Crypto) EncodeBASE64URL(text string) string + func (c *Crypto) EncodeDES(text string) (cipher.Block, error) + func (c *Crypto) EncodeMD5(text string) string + func (c *Crypto) EncodeMD5Base64(text string) string + func (c *Crypto) EncodeSHA1HMAC(data ...string) string + func (c *Crypto) EncodeSHA1HMACBase64(data ...string) string + func (c *Crypto) EncodeSHA256(text string) string + func (c *Crypto) EncodeSHA256HMAC(data ...string) string + func (c *Crypto) EncodeSHA256HMACBase64(data ...string) string + func (c *Crypto) EncodeSHA512(text string) string + func (c *Crypto) EncodeSHA512HMAC(data ...string) string + func (c *Crypto) EncodeSHA512HMACBase64(data ...string) string