Versions in this module Expand all Collapse all v1 v1.0.2 Dec 8, 2019 v1.0.1 Dec 8, 2019 Changes in this version + func AesDecrypt(crypted, key []byte) ([]byte, error) + func AesDecryptSimple(cipherText string, key string) string + func AesEncrypt(origData, key []byte) ([]byte, error) + func AesEncryptSimple(plainText string, key string) string + func DesDecrypt(decrypted string, key []byte) (string, error) + func DesEncrypt(text string, key []byte) (string, error) + func ToBase64(rsc []byte) string + type RSA struct + Length RsaLength + PrivateKey []byte + PublicKey []byte + func NewGenRSA(length RsaLength) *RSA + func NewRSA(PrvKey, PubKey []byte) *RSA + func (p *RSA) RsaDecrypt(ciphertext []byte) []byte + func (p *RSA) RsaEncrypt(data []byte) []byte + func (p *RSA) RsaSignWithSha256(data []byte) []byte + func (p *RSA) RsaVerySignWithSha256(data, signData []byte) bool + type RsaLength int + const LEN_1024 + const LEN_2048