Generate a plain-text, encrypted archive that is secured using the public key of a particular GitHub user.
Usage is similar to tar.
ssh-tgzx github-username archive-file [files | directories]
Send the file to user who owns the identity and they simply:
bash ./archive-file identity-file
bash ./archive-file identity-file t
To archive some files to send to me:
ssh-tgzx nicerobot private.tgzx private-folder secret-file
It is (relatively) safe to send the file to me via insecure channels.
I can extract is using:
bash ./private.tgzx ~/.ssh/id_rsa
Or just list the contents:
bash ./private.tgzx ~/.ssh/id_rsa t
macOS XProtect may flag this script as malware and delete it due to its use of encryption, curl, and executable file generation. This is a false positive.
To restore and allow it:
- Recover the file from Trash or re-download it
- Open System Settings > Privacy & Security
- Look for the blocked file notice and click Allow Anyway