Documentation ¶
Overview ¶
Package rsacrypto contains utility functions for rsa encryption/decryption
Index ¶
- type RsaCrypto
- func (crypto RsaCrypto) Decrypt(cipherText string, privateKeyJson string, provider string) (string, error)
- func (crypto RsaCrypto) Encrypt(plainText string, publicKeyJson string) (string, error)
- func (crypto RsaCrypto) GenerateKeyPair(keySize int) (string, string, error)
- func (rsaCrypto RsaCrypto) SignData(data string, privateKeyJson string) (string, error)
- func (rsaCrypto RsaCrypto) VerifySignature(data string, signature string, publicKeyJson string) (bool, error)
- type RsaPrivateKey
- type RsaPrivateKeyParameters
- type RsaPublicKey
- type RsaPublicKeyParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RsaCrypto ¶
type RsaCrypto struct { }
func (RsaCrypto) GenerateKeyPair ¶
type RsaPrivateKey ¶
type RsaPrivateKey rsa.PrivateKey
type RsaPrivateKeyParameters ¶
type RsaPublicKey ¶
type RsaPublicKeyParameters ¶
Click to show internal directories.
Click to hide internal directories.