Documentation ¶
Index ¶
- func AesCbcDecrypt(cipherText, key []byte, ivAes ...byte) ([]byte, error)
- func AesCbcEncrypt(plainText, key []byte, ivAes ...byte) ([]byte, error)
- func GetRsaKey() error
- func PKCS5Padding(plainText []byte, blockSize int) []byte
- func PKCS5UnPadding(plainText []byte) ([]byte, error)
- func RsaDecrypt(cryptText, key []byte) (plainText []byte, err error)
- func RsaEncrypt(plainText, key []byte) (cryptText []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCbcDecrypt ¶
decrypt
func AesCbcEncrypt ¶
encrypt
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func RsaDecrypt ¶
func RsaEncrypt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.