Versions in this module Expand all Collapse all v0 v0.1.0 Aug 14, 2023 Changes in this version + const BASE_64_FORMAT + const CHAR_SET + const RSA_ALGORITHM_KEY_TYPE + const RSA_ALGORITHM_SIGN + func AesDecrypt(crypted, iv []byte) ([]byte, error) + func AesDecryptString(crypted, iv string) (string, error) + func AesEncrypt(origData, iv []byte) ([]byte, error) + func AesEncryptString(src, blockSize string) (string, error) + func CreateKeys(publicKeyWriter, privateKeyWriter io.Writer, keyLength int) error + func MarshalPKCS8PrivateKey(key *rsa.PrivateKey) []byte + func PKCS7Padding(ciphertext []byte, blockSize int) []byte + func PKCS7UnPadding(src []byte) ([]byte, error) + func PwdSlat(password, slat string) string + func PwdSlatWithInt64Hex16(password string, i64 int64) string + func SlatBuilder(a ...int) string + type XRsa struct + func NewXRsa(publicKey []byte, privateKey []byte) (*XRsa, error) + func (r *XRsa) PrivateDecrypt(encrypted string) (string, error) + func (r *XRsa) PublicEncrypt(data string) (string, error) + func (r *XRsa) Sign(data []byte) (string, error) + func (r *XRsa) Verify(data string, sign string) error + func (r *XRsa) VerifyStdEncoding(data string, sign string) error