From 68212e098c28720b6443d41223da721a5b104f9e Mon Sep 17 00:00:00 2001 From: s2 Date: Mon, 14 Jan 2019 08:51:32 +0100 Subject: [PATCH] update readme to reflect homepage change --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e5eae2d..3dc7f75 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# sshencdec.sh +# sshenc.sh bash script to encrypt data using a users ssh public key. @@ -6,35 +6,35 @@ bash script to encrypt data using a users ssh public key. > decrypt it with your ssh private key using the following command: ``` -./sshencdec.sh -s ~/.ssh/id_rsa < file-containing-the-encrypted-text.txt +./sshenc.sh -s ~/.ssh/id_rsa < file-containing-the-encrypted-text.txt ``` ## install ``` -wget https://git.e.tern.al/s2/sshencdec/raw/branch/master/sshencdec.sh -chmod +x sshencdec.sh +wget wget https://sshenc.sh/sshenc.sh +chmod +x sshenc.sh ``` ## examples ### encrypt a file using your own ssh public key ``` -./sshencdec.sh -p ~/.ssh/id_rsa.pub < plain-text-file.txt > encrypted.txt +./sshenc.sh -p ~/.ssh/id_rsa.pub < plain-text-file.txt > encrypted.txt ``` ### encrypt a file using multiple recipients (broadcast encryption) ``` -./sshencdec.sh -p ~/.ssh/id_rsa.pub -p id_rsa-alice.pub -p id_rsa-bob.pub < plain-text-file.txt > encrypted.txt +./sshenc.sh -p ~/.ssh/id_rsa.pub -p id_rsa-alice.pub -p id_rsa-bob.pub < plain-text-file.txt > encrypted.txt ``` ### encrypt a file using the public key of a github user ``` -./sshencdec.sh -p <(curl -sf "https://github.com/S2-.keys" | grep ssh-rsa | tail -n1) < plain-text-file.txt +./sshenc.sh -p <(curl -sf "https://github.com/S2-.keys" | grep ssh-rsa | tail -n1) < 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. ### decrypt a file ``` -./sshencdec.sh -s ~/.ssh/id_rsa < encrypted.txt +./sshenc.sh -s ~/.ssh/id_rsa < encrypted.txt ```