Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptDir ¶
DecryptDir takes the path to an encrypted directory and decrypts it using the private key specified. It will write the decrypted directory to newDirPath.
pgp -> gzip -> tar
func EncryptDir ¶
EncryptDir takes the path to a directory an encrypts it using the public key specified. It will write out an encrypted file to newDirPath.
gzip -> tar -> pgp
Types ¶
type ErrPrivateKeyDecryptionFailed ¶
ErrPrivateKeyDecryptionFailed occurs when the private key cannot be encrypted. This error is normally the fault of the user and means that the program should ask for the password again.
func (ErrPrivateKeyDecryptionFailed) Error ¶
func (e ErrPrivateKeyDecryptionFailed) Error() string
Error returns the error message.
Click to show internal directories.
Click to hide internal directories.