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, success bool)
- func AesEncryptCBC(origData []byte, key []byte) (encrypted []byte)
- func AesEncryptCBCWithIv(origData []byte, key []byte, iv []byte) (encrypted []byte)
- func AesEncryptCFB(origData []byte, key []byte) (encrypted []byte)
- func AesEncryptECB(origData []byte, key []byte) (encrypted []byte)
- func ParsePublicKey(publicKey []byte) (*rsa.PublicKey, error)
- func RSAEncrypt(origData []byte, publicKey []byte) (encrypted []byte)
- func RSAEncryptV2(origData []byte, publicKey *rsa.PublicKey) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecryptCBC ¶
func AesDecryptCFB ¶
func AesDecryptECB ¶
func AesEncryptCBC ¶
=================== CBC ======================
func AesEncryptCBCWithIv ¶
func AesEncryptCFB ¶
=================== CFB ======================
func AesEncryptECB ¶
=================== ECB ======================
func RSAEncrypt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.