ssh-vault

Encrypt and decrypt files using SSH keys for secure data handling

brewmacoslinux
Try with needOr install directly
Source

About

Encrypt/decrypt using SSH keys

Commands

ssh-vault

Examples

Encrypt a file using your SSH public key$ ssh-vault encrypt ~/.ssh/id_rsa.pub < plaintext.txt > encrypted.txt
Decrypt a file using your SSH private key$ ssh-vault decrypt ~/.ssh/id_rsa < encrypted.txt > plaintext.txt
Encrypt a file and view it directly without saving$ ssh-vault encrypt ~/.ssh/id_rsa.pub < secret.txt | ssh-vault decrypt ~/.ssh/id_rsa