Versions in this module Expand all Collapse all v0 v0.2.2 Dec 22, 2022 Changes in this version + const AnsiX923 + const Base64 + const CBC + const CFB + const CTR + const ECB + const Hex + const ISO97971 + const MD4 + const MD5 + const No + const OFB + const PKCS5 + const PKCS7 + const RIPEMD160 + const Raw + const SHA1 + const SHA224 + const SHA256 + const SHA384 + const SHA512 + const Version + const Zero + var Decode = newDecoder() + var Decrypt = newDecrypter() + var Encode = newEncoder() + var Encrypt = newEncrypter() + var Sign = newSigner() + var Verify = newVerifier() + type Cipher struct + func NewCipher() *Cipher + func (c *Cipher) AnsiX923Padding(src []byte, blockSize int) []byte + func (c *Cipher) AnsiX923UnPadding(src []byte) []byte + func (c *Cipher) ISO97971Padding(src []byte, blockSize int) []byte + func (c *Cipher) ISO97971UnPadding(src []byte) []byte + func (c *Cipher) NewCBCDecrypter(src []byte, block cipher.Block) (dst []byte) + func (c *Cipher) NewCBCEncrypter(src []byte, block cipher.Block) (dst []byte) + func (c *Cipher) NewCFBDecrypter(src []byte, block cipher.Block) (dst []byte) + func (c *Cipher) NewCFBEncrypter(src []byte, block cipher.Block) (dst []byte) + func (c *Cipher) NewCTRDecrypter(src []byte, block cipher.Block) (dst []byte) + func (c *Cipher) NewCTREncrypter(src []byte, block cipher.Block) (dst []byte) + func (c *Cipher) NewECBDecrypter(src []byte, block cipher.Block) (dst []byte) + func (c *Cipher) NewECBEncrypter(src []byte, block cipher.Block) (dst []byte) + func (c *Cipher) NewOFBDecrypter(src []byte, block cipher.Block) (dst []byte) + func (c *Cipher) NewOFBEncrypter(src []byte, block cipher.Block) (dst []byte) + func (c *Cipher) PKCS5Padding(src []byte) []byte + func (c *Cipher) PKCS5UnPadding(src []byte) []byte + func (c *Cipher) PKCS7Padding(src []byte, blockSize int) []byte + func (c *Cipher) PKCS7UnPadding(src []byte) []byte + func (c *Cipher) SetIV(iv interface{}) + func (c *Cipher) SetKey(key interface{}) + func (c *Cipher) SetMode(mode cipherMode) + func (c *Cipher) SetPadding(padding cipherPadding) + func (c *Cipher) ZeroPadding(src []byte, blockSize int) []byte + func (c *Cipher) ZeroUnPadding(src []byte) []byte + type Decoder struct + func (d Decoder) ByBase100() Decoder + func (d Decoder) ByBase16() Decoder + func (d Decoder) ByBase32() Decoder + func (d Decoder) ByBase58() Decoder + func (d Decoder) ByBase62() Decoder + func (d Decoder) ByBase64() Decoder + func (d Decoder) ByBase64URL() Decoder + func (d Decoder) ByBase85() Decoder + func (d Decoder) ByBase91() Decoder + func (d Decoder) ByHex() Decoder + func (d Decoder) ByMorse(separator ...string) Decoder + func (d Decoder) BySafeURL() Decoder + func (d Decoder) FromBytes(b []byte) Decoder + func (d Decoder) FromString(s string) Decoder + func (d Decoder) String() string + func (d Decoder) ToBytes() []byte + func (d Decoder) ToString() string + type Decrypter struct + func (d Decrypter) By3Des(c *Cipher) Decrypter + func (d Decrypter) ByAes(c *Cipher) Decrypter + func (d Decrypter) ByBlowfish(c *Cipher) Decrypter + func (d Decrypter) ByDes(c *Cipher) Decrypter + func (d Decrypter) ByRc4(key interface{}) Decrypter + func (d Decrypter) ByRsa(privateKey interface{}) Decrypter + func (d Decrypter) ByTea(key interface{}, rounds ...int) Decrypter + func (d Decrypter) FromBase64Bytes(b []byte) Decrypter + func (d Decrypter) FromBase64String(s string) Decrypter + func (d Decrypter) FromHexBytes(b []byte) Decrypter + func (d Decrypter) FromHexString(s string) Decrypter + func (d Decrypter) FromRawBytes(b []byte) Decrypter + func (d Decrypter) FromRawString(s string) Decrypter + func (d Decrypter) String() string + func (d Decrypter) ToBytes() []byte + func (d Decrypter) ToString() string + type Encoder struct + func (e Encoder) ByBase100() Encoder + func (e Encoder) ByBase16() Encoder + func (e Encoder) ByBase32() Encoder + func (e Encoder) ByBase58() Encoder + func (e Encoder) ByBase62() Encoder + func (e Encoder) ByBase64() Encoder + func (e Encoder) ByBase64URL() Encoder + func (e Encoder) ByBase85() Encoder + func (e Encoder) ByBase91() Encoder + func (e Encoder) ByHex() Encoder + func (e Encoder) ByMorse(separator ...string) Encoder + func (e Encoder) BySafeURL() Encoder + func (e Encoder) FromBytes(b []byte) Encoder + func (e Encoder) FromString(s string) Encoder + func (e Encoder) String() string + func (e Encoder) ToBytes() []byte + func (e Encoder) ToString() string + type Encrypter struct + func (e Encrypter) By3Des(c *Cipher) Encrypter + func (e Encrypter) ByAes(c *Cipher) Encrypter + func (e Encrypter) ByBlowfish(c *Cipher) Encrypter + func (e Encrypter) ByDes(c *Cipher) Encrypter + func (e Encrypter) ByHmacMd2(key interface{}) Encrypter + func (e Encrypter) ByHmacMd4(key interface{}) Encrypter + func (e Encrypter) ByHmacMd5(key interface{}) Encrypter + func (e Encrypter) ByHmacRipemd160(key interface{}) Encrypter + func (e Encrypter) ByHmacSha1(key interface{}) Encrypter + func (e Encrypter) ByHmacSha224(key interface{}) Encrypter + func (e Encrypter) ByHmacSha256(key interface{}) Encrypter + func (e Encrypter) ByHmacSha3(key interface{}, size int) Encrypter + func (e Encrypter) ByHmacSha384(key interface{}) Encrypter + func (e Encrypter) ByHmacSha512(key interface{}, size ...int) Encrypter + func (e Encrypter) ByHmacSm3(key interface{}) Encrypter + func (e Encrypter) ByMd2() Encrypter + func (e Encrypter) ByMd4() Encrypter + func (e Encrypter) ByMd5() Encrypter + func (e Encrypter) ByRc4(key interface{}) Encrypter + func (e Encrypter) ByRipemd160() Encrypter + func (e Encrypter) ByRsa(publicKey interface{}) Encrypter + func (e Encrypter) BySha1() Encrypter + func (e Encrypter) BySha224() Encrypter + func (e Encrypter) BySha256() Encrypter + func (e Encrypter) BySha3(size int) Encrypter + func (e Encrypter) BySha384() Encrypter + func (e Encrypter) BySha512(size ...int) Encrypter + func (e Encrypter) BySm3() Encrypter + func (e Encrypter) ByTea(key interface{}, rounds ...int) Encrypter + func (e Encrypter) FromBytes(b []byte) Encrypter + func (e Encrypter) FromString(s string) Encrypter + func (e Encrypter) String() string + func (e Encrypter) ToBase64Bytes() []byte + func (e Encrypter) ToBase64String() string + func (e Encrypter) ToHexBytes() []byte + func (e Encrypter) ToHexString() string + func (e Encrypter) ToRawBytes() []byte + func (e Encrypter) ToRawString() string + type Signer struct + func (s Signer) ByBcrypt(rounds ...int) Signer + func (s Signer) ByEd25519(privateKey interface{}, mode encodingMode) Signer + func (s Signer) ByRsa(privateKey interface{}, hash hashAlgo) Signer + func (s Signer) FromBytes(message []byte) Signer + func (s Signer) FromString(message string) Signer + func (s Signer) String() string + func (s Signer) ToBase64Bytes() []byte + func (s Signer) ToBase64String() string + func (s Signer) ToHexBytes() []byte + func (s Signer) ToHexString() string + func (s Signer) ToRawBytes() []byte + func (s Signer) ToRawString() string + type Verifier struct + func (v Verifier) ByBcrypt() Verifier + func (v Verifier) ByEd25519(publicKey interface{}, mode encodingMode) Verifier + func (v Verifier) ByRsa(publicKey interface{}, hash hashAlgo) Verifier + func (v Verifier) FromBase64Bytes(signature, message []byte) Verifier + func (v Verifier) FromBase64String(signature, message string) Verifier + func (v Verifier) FromHexBytes(signature, message []byte) Verifier + func (v Verifier) FromHexString(signature, message string) Verifier + func (v Verifier) FromRawBytes(signature, message []byte) Verifier + func (v Verifier) FromRawString(signature, message string) Verifier + func (v Verifier) ToBool() bool