diff --git a/index.html b/index.html index 89fc95d..e191060 100644 --- a/index.html +++ b/index.html @@ -70,10 +70,28 @@

Install

+
+

Install locally

wget https://sshenc.sh/sshenc.sh
chmod +x sshenc.sh
+ +

Run it from remote every time

+ If you are + + you can use an alias that downloads and executes the script ecery time:
+ alias sshenc.sh='bash <(curl -s https://sshenc.sh/sshenc.sh)' +
+
+ To add it to your environment permanently:
+ echo "alias sshenc.sh='bash <(curl -s https://sshenc.sh/sshenc.sh)'" >> ~/.bashrc +
+
@@ -84,23 +102,23 @@

encrypt a file using your own ssh public key

- ./sshenc.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)

- ./sshenc.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

- ./sshenc.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.

dedecrypt a file

- ./sshenc.sh -s ~/.ssh/id_rsa < encrypted.txt + sshenc.sh -s ~/.ssh/id_rsa < encrypted.txt
@@ -108,6 +126,7 @@

License

+
MIT