Versions in this module Expand all Collapse all v0 v0.4.2 Nov 8, 2022 Changes in this version + const BASE_64_FORMAT + const CHAR_SET + const RSA_ALGORITHM_KEY_TYPE + const RSA_ALGORITHM_SIGN + func CreateKeys(publicKeyWriter, privateKeyWriter io.Writer, keyLength int) error + func MarshalPKCS8PrivateKey(key *rsa.PrivateKey) []byte + 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 string) (string, error) + func (r *XRsa) Verify(data string, sign string) error