Documentation ¶
Index ¶
- func AesDecrypt(crypted, key []byte) ([]byte, error)
- func AesEncrypt(origData, key []byte) ([]byte, error)
- func DesDecrypt(crypted, key []byte) ([]byte, error)
- func DesEncrypt(origData, key []byte) ([]byte, error)
- func GenRsaKey(bits int) ([]byte, []byte, error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5Unpadding(origData []byte) []byte
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func RsaDecrypt(ciphertext, privateKey []byte) ([]byte, error)
- func RsaEncrypt(origData, publicKey []byte) ([]byte, error)
- func TripleEcbDesDecrypt(crypted, key []byte) ([]byte, error)
- func TripleEcbDesEncrypt(origData, key []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func AesEncrypt ¶
func DesDecrypt ¶
func DesEncrypt ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func TripleEcbDesDecrypt ¶
[golang ECB 3DES Decrypt]
func TripleEcbDesEncrypt ¶
[golang ECB 3DES Encrypt]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.