https://github.com/samrocketman/gpg
Contact Sam Gleske securely via GPG encryption
https://github.com/samrocketman/gpg
Last synced: 4 months ago
JSON representation
Contact Sam Gleske securely via GPG encryption
- Host: GitHub
- URL: https://github.com/samrocketman/gpg
- Owner: samrocketman
- Created: 2021-11-09T22:35:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T01:17:21.000Z (about 1 year ago)
- Last Synced: 2025-04-11T02:30:51.335Z (about 1 year ago)
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Communicating securely with Sam Gleske
### Prerequisites
For Linux GPG, is typically pre-installed. For Mac, install [GPG
Suite][mac-gpg].
[mac-gpg]: https://gpgtools.org/
### Importing my GPG key
Before you can securely send me files and messages, you must first import my GPG
public key.
curl -L https://raw.githubusercontent.com/samrocketman/gpg/master/sam_gleske.asc | gpg --import
Feel free to edit the trust of my key with:
$ gpg --edit-key 'Sam Gleske'
gpg> trust
gpg> save
# Send encrypted files to Sam Gleske
The following encrypts a `file` to `file.asc`. Share the encrypted `file.asc`
with me.
gpg -ear 'Sam Gleske' file
For larger files, it's better to create a `file.gpg` with:
gpg -er 'Sam Gleske' file
# Securely managing files from servers
This section is more of a personal note for me.
If files need to be downloaded onto my laptop, then I stream tar into GPG to
encrypt it.
ssh HOSTNAME 'tar -cz file1 file2' | gpg -er 'Sam Gleske' -o file.tgz.gpg
To upload and extract the contents from local to a remote server the following
command can be run.
gpg -d < file.tgz.gpg | ssh HOSTNAME 'tar -xz'