Documentation ¶
Index ¶
- func AesDecryptCBC(encrypted []byte, key []byte) (decrypted []byte)
- func AesDecryptCFB(encrypted []byte, key []byte) (decrypted []byte)
- func AesDecryptECB(encrypted []byte, key []byte) (decrypted []byte)
- func AesEncryptCBC(origData []byte, key []byte) (encrypted []byte, hexStr string, base64Str string)
- func AesEncryptCFB(origData []byte, key []byte) (encrypted []byte, hexStr string, base64Str string)
- func AesEncryptECB(origData []byte, key []byte) (encrypted []byte, hexStr string, base64Str string)
- func GenRsaKey(bits int) (string, string, error)
- func MD5(encode string) string
- func RsaDecrypt(privateKey string, ciphertext string) ([]byte, error)
- func RsaEncrypt(publicKey string, origData string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecryptCBC ¶
func AesDecryptCFB ¶
func AesDecryptECB ¶
func AesEncryptCBC ¶
=================== CBC ======================
func AesEncryptCFB ¶
=================== CFB ======================
func AesEncryptECB ¶
=================== ECB ======================
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.