mirror of
https://github.com/5im-0n/sshenc.sh.git
synced 2025-08-02 11:20:05 +02:00
update the README.md with the new functionality
This commit is contained in:
@@ -28,9 +28,9 @@ sshenc.sh -p ~/.ssh/id_rsa.pub -p id_rsa-alice.pub -p id_rsa-bob.pub < plain-tex
|
||||
|
||||
### encrypt a file using the public key of a github user
|
||||
```
|
||||
sshenc.sh -p <(curl -sf "https://github.com/S2-.keys" | grep ssh-rsa | tail -n1) < plain-text-file.txt
|
||||
sshenc.sh -g S2- < plain-text-file.txt
|
||||
```
|
||||
this line fetches the first public key for the github user S2- and encrypts the file plain-text-file.txt using this key.
|
||||
this line fetches the public keys for the github user S2- and encrypts the file plain-text-file.txt using its key(s).
|
||||
|
||||
### decrypt a file
|
||||
```
|
||||
|
Reference in New Issue
Block a user