Documentation ¶
Index ¶
- func AESCBCDecrypt(encrypted, key, iv []byte, pad Pad) ([]byte, error)
- func AESCBCDecryptWithBase64(baseEncrypted, key, iv []byte, pad Pad) (string, error)
- func AESCBCDecryptWithSalt(data, key []byte, iter int, magic string, pad Pad, h func() hash.Hash) ([]byte, error)
- func AESCBCEncrypt(origData, key, iv []byte, pad Pad) ([]byte, error)
- func AESCBCEncryptWithBase64(origData, key, iv []byte, pad Pad) (string, error)
- func AESCBCEncryptWithSalt(origData, key []byte, iter int, magic string, pad Pad, h func() hash.Hash) ([]byte, error)
- func AESCFBDecrypt(encrypted, key, iv []byte, pad Pad) ([]byte, error)
- func AESCFBEncrypt(origData, key, iv []byte, pad Pad) ([]byte, error)
- func AESDecryptWithSalt(encrypted, key []byte, iterCount int, magic string, h func() hash.Hash, ...) ([]byte, error)
- func AESECBDecrypt(encrypted, key []byte, pad Pad) ([]byte, error)
- func AESECBEncrypt(origData, key []byte, pad Pad) ([]byte, error)
- func AESEncryptWithSalt(origData, key []byte, iter int, magic string, h func() hash.Hash, pad Pad, ...) ([]byte, error)
- func AESGCMDecrypt(encrypted, key, additional []byte) ([]byte, error)
- func AESGCMDecryptWithNonce(encrypted, key, nonce, additional []byte) ([]byte, error)
- func AESGCMEncrypt(origData, key, additional []byte) ([]byte, error)
- func AESGCMEncryptWithNonce(origData, key, nonce, additional []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESCBCDecrypt ¶
AESCBCDecrypt 普通解密
func AESCBCDecryptWithBase64 ¶
AESCBCDecryptWithBase64 base64编码后的加密串,返回原始数据
func AESCBCDecryptWithSalt ¶
func AESCBCEncrypt ¶
AESCBCEncrypt 普通加密
func AESCBCEncryptWithBase64 ¶
AESCBCEncryptWithBase64 加密 结果返回base64编码后的string
func AESCBCEncryptWithSalt ¶
func AESCFBDecrypt ¶
func AESCFBEncrypt ¶
func AESDecryptWithSalt ¶
func AESECBDecrypt ¶
func AESECBEncrypt ¶
func AESEncryptWithSalt ¶
func AESGCMDecrypt ¶
func AESGCMDecryptWithNonce ¶
func AESGCMEncrypt ¶
func AESGCMEncryptWithNonce ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.