Documentation ¶
Index ¶
- func AesDecryptECB(encrypted []byte, key []byte) (decrypted []byte)
- func AesEncryptECB(origData []byte, key []byte) (encrypted []byte)
- func GenerateAesKey(data string) string
- func GenerateRsaKey() ([]byte, []byte, error)
- func RsaDecrypt(ciphertext, privateKey []byte) ([]byte, error)
- func RsaEncrypt(origData, publicKey []byte) ([]byte, error)
- func RsaSign(origData, privateKey []byte) (string, error)
- func RsaVerify(origData, signature, publicKey []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecryptECB ¶
func AesEncryptECB ¶
func GenerateAesKey ¶
=================== ECB ======================
func GenerateRsaKey ¶
=================== RSA ==================================== https://www.sohamkamani.com/golang/rsa-encryption/
func RsaDecrypt ¶
func RsaEncrypt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.