Versions in this module Expand all Collapse all v0 v0.6.0 Dec 17, 2019 Changes in this version + func ParseCertificate(certPemBytes []byte) (*x509.Certificate, error) + func ParsePrivateKey(keyPemBytes []byte) (*rsa.PrivateKey, error) v0.3.0 Jul 10, 2019 Changes in this version + const AesKeyLength + const AnnotationBase64 + const AnnotationEncrypted + const HeaderLength + func Decrypt(cipherBytes []byte, key *rsa.PrivateKey) ([]byte, error) + func Encrypt(plainBytes []byte, pubKey *rsa.PublicKey) ([]byte, error) + func TryDecrypt(payload string, key *rsa.PrivateKey) ([]byte, error)