Documentation ¶
Index ¶
- type Cryptobin
- func (this Cryptobin) Aes() Cryptobin
- func (this Cryptobin) AesCFBDecrypt() Cryptobin
- func (this Cryptobin) AesCFBEncrypt() Cryptobin
- func (this Cryptobin) AesECBDecrypt() Cryptobin
- func (this Cryptobin) AesECBEncrypt() Cryptobin
- func (this Cryptobin) AesECBGenerateKey(key []byte) (genKey []byte)
- func (this Cryptobin) AppendError(err ...error) Cryptobin
- func (this Cryptobin) Blowfish(salt ...string) Cryptobin
- func (this Cryptobin) CBC() Cryptobin
- func (this Cryptobin) CCM(nonce string, additional ...string) Cryptobin
- func (this Cryptobin) CFB() Cryptobin
- func (this Cryptobin) CFB8() Cryptobin
- func (this Cryptobin) CTR() Cryptobin
- func (this Cryptobin) Cast5() Cryptobin
- func (this Cryptobin) Chacha20(nonce string, counter ...uint32) Cryptobin
- func (this Cryptobin) Chacha20poly1305(nonce string, additional string) Cryptobin
- func (this Cryptobin) Chacha20poly1305X(nonce string, additional string) Cryptobin
- func (this Cryptobin) CheckGuessMultiple() bool
- func (this Cryptobin) CipherBlock(key []byte) (cipher.Block, error)
- func (this Cryptobin) CipherDecrypt() Cryptobin
- func (this Cryptobin) CipherEncrypt() Cryptobin
- func (this Cryptobin) Decrypt() Cryptobin
- func (this Cryptobin) Des() Cryptobin
- func (this Cryptobin) ECB() Cryptobin
- func (this Cryptobin) Encrypt() Cryptobin
- func (this Cryptobin) Error() cryptobin_tool.Errors
- func (this Cryptobin) FromBase64String(data string) Cryptobin
- func (this Cryptobin) FromBytes(data []byte) Cryptobin
- func (this Cryptobin) FromHexString(data string) Cryptobin
- func (this Cryptobin) FromString(data string) Cryptobin
- func (this Cryptobin) FuncDecrypt(f func(Cryptobin) Cryptobin) Cryptobin
- func (this Cryptobin) FuncEncrypt(f func(Cryptobin) Cryptobin) Cryptobin
- func (this Cryptobin) GCM(nonce string, additional ...string) Cryptobin
- func (this Cryptobin) GetConfig() map[string]any
- func (this Cryptobin) GetData() []byte
- func (this Cryptobin) GetErrors() []error
- func (this Cryptobin) GetIv() []byte
- func (this Cryptobin) GetKey() []byte
- func (this Cryptobin) GetMode() string
- func (this Cryptobin) GetMultiple() string
- func (this Cryptobin) GetOneConfig(key string) any
- func (this Cryptobin) GetPadding() string
- func (this Cryptobin) GetParsedData() []byte
- func (this Cryptobin) GuessDecrypt() Cryptobin
- func (this Cryptobin) GuessEncrypt() Cryptobin
- func (this Cryptobin) ISO10126Padding() Cryptobin
- func (this Cryptobin) ISO7816_4Padding() Cryptobin
- func (this Cryptobin) ISO97971Padding() Cryptobin
- func (this Cryptobin) NoPadding() Cryptobin
- func (this Cryptobin) NoParse() Cryptobin
- func (this Cryptobin) OFB() Cryptobin
- func (this Cryptobin) OFB8() Cryptobin
- func (this Cryptobin) OnError(fn ErrorFunc) Cryptobin
- func (this Cryptobin) PKCS1Padding(bt ...string) Cryptobin
- func (this Cryptobin) PKCS5Padding() Cryptobin
- func (this Cryptobin) PKCS7Padding() Cryptobin
- func (this Cryptobin) Padding(plainText []byte, blockSize int) []byte
- func (this Cryptobin) RC2() Cryptobin
- func (this Cryptobin) RC4() Cryptobin
- func (this Cryptobin) RsaDecrypt(password ...string) Cryptobin
- func (this Cryptobin) RsaEncrypt() Cryptobin
- func (this Cryptobin) RsaOAEPDecrypt(typ string, password ...string) Cryptobin
- func (this Cryptobin) RsaOAEPEncrypt(typ string) Cryptobin
- func (this Cryptobin) RsaPrikeyEncrypt(password ...string) Cryptobin
- func (this Cryptobin) RsaPubkeyDecrypt() Cryptobin
- func (this Cryptobin) SM2Decrypt(password ...string) Cryptobin
- func (this Cryptobin) SM2Encrypt() Cryptobin
- func (this Cryptobin) SM4() Cryptobin
- func (this Cryptobin) SetIv(data string) Cryptobin
- func (this Cryptobin) SetKey(data string) Cryptobin
- func (this Cryptobin) String() string
- func (this Cryptobin) TBCPadding() Cryptobin
- func (this Cryptobin) Tea(rounds ...int) Cryptobin
- func (this Cryptobin) ToBase64String() string
- func (this Cryptobin) ToBytes() []byte
- func (this Cryptobin) ToHexString() string
- func (this Cryptobin) ToString() string
- func (this Cryptobin) TriDes() Cryptobin
- func (this Cryptobin) Twofish() Cryptobin
- func (this Cryptobin) UnPadding(cipherText []byte) []byte
- func (this Cryptobin) WithConfig(config map[string]any) Cryptobin
- func (this Cryptobin) WithData(data []byte) Cryptobin
- func (this Cryptobin) WithErrors(errs []error) Cryptobin
- func (this Cryptobin) WithIv(iv []byte) Cryptobin
- func (this Cryptobin) WithKey(key []byte) Cryptobin
- func (this Cryptobin) WithMode(mode string) Cryptobin
- func (this Cryptobin) WithMultiple(multiple string) Cryptobin
- func (this Cryptobin) WithOneConfig(key string, value any) Cryptobin
- func (this Cryptobin) WithPadding(padding string) Cryptobin
- func (this Cryptobin) WithParsedData(data []byte) Cryptobin
- func (this Cryptobin) X923Padding() Cryptobin
- func (this Cryptobin) Xtea() Cryptobin
- func (this Cryptobin) Xts(cipher string, sectorNum uint64) Cryptobin
- func (this Cryptobin) ZeroPadding() Cryptobin
- type ErrorFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cryptobin ¶
type Cryptobin struct { // 错误 Errors []error // contains filtered or unexported fields }
*
- 对称加密 *
- @create 2022-3-19
- @author deatil
func (Cryptobin) AesECBDecrypt ¶
func (Cryptobin) AesECBEncrypt ¶
func (Cryptobin) AesECBGenerateKey ¶
func (Cryptobin) AppendError ¶ added in v1.0.1026
添加错误
func (Cryptobin) Chacha20poly1305 ¶
Chacha20poly1305 nonce is 12 bytes
func (Cryptobin) Chacha20poly1305X ¶ added in v1.0.1031
Chacha20poly1305X nonce is 24 bytes
func (Cryptobin) CipherBlock ¶
Cipher
func (Cryptobin) FromBase64String ¶
Base64
func (Cryptobin) FuncDecrypt ¶
方法解密
func (Cryptobin) FuncEncrypt ¶
方法加密
func (Cryptobin) ISO97971Padding ¶ added in v1.0.1026
ISO97971 补码
func (Cryptobin) RsaDecrypt ¶
RSA 私钥解密 pkcs8 带密码不支持其他工具生成的密钥
func (Cryptobin) RsaOAEPDecrypt ¶
RSA OAEP 私钥解密 pkcs8 带密码不支持其他工具生成的密钥 typ 为 hash.defaultHashes 对应数据
func (Cryptobin) RsaOAEPEncrypt ¶
RSA OAEP 公钥加密 typ 为 hash.defaultHashes 对应数据
func (Cryptobin) RsaPrikeyEncrypt ¶
RSA 私钥加密 pkcs8 带密码不支持其他工具生成的密钥
func (Cryptobin) SM2Decrypt ¶
SM2 私钥解密
func (Cryptobin) WithErrors ¶ added in v1.0.1026
设置错误
func (Cryptobin) WithOneConfig ¶
设置一个配置
Click to show internal directories.
Click to hide internal directories.