secure
is a CLI tool that enables sending files securly over an insecure connection (i.e. Slack). It's using public ssh-key for encrypting files and allows decryption using private key.
To get help at any time for the tool or any command you can run:
secret --help # help pertaining to the tool itself
secret encrypt --help # help pertaining to the encrypt command
secret decrypt --help # help pertaining to the decrypt command
secure encrypt --file my_secret_file.txt --publicKey recipient_key.pub
Files to send to recipient.
Filename | Purpose |
---|---|
secret.txt.enc | Encrypted file containing secret |
secret.key.enc | Encrypted symmetric key |
secure decrypt --file secret.txt.enc --secretKey secret.key.enc
Filename | Purpose |
---|---|
secret.txt | Unencrypted file from sender |
- Generating 32 bit symmetric key.
- Encrypt file to transfer with the symmetric key.
- Encrypt the symmetric key using recipients public ssh-key.