Documentation ¶
Index ¶
- Constants
- func DecryptFile(filename string, privateKey *rsa.PrivateKey) error
- func EncryptFile(filename string, publicKey *rsa.PublicKey) error
- func GenerateKeyPair(bits int) error
- func LoadPrivateKey(filename string) (*rsa.PrivateKey, error)
- func LoadPublicKey(filename string) (*rsa.PublicKey, error)
Constants ¶
View Source
const ( PrivateKeyPath = "private.pem" PublicKeyPath = "public.pem" )
Variables ¶
This section is empty.
Functions ¶
func DecryptFile ¶
func DecryptFile(filename string, privateKey *rsa.PrivateKey) error
func GenerateKeyPair ¶
func LoadPrivateKey ¶
func LoadPrivateKey(filename string) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.