From ea256e4edecec5a70a6a50fc9d2767467ede4a10 Mon Sep 17 00:00:00 2001 From: Ross Smith II Date: Sat, 30 Jan 2021 08:30:02 -0800 Subject: [PATCH] Add openssl example to index.txt --- src/index.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/index.txt b/src/index.txt index b838e6d..15f1446 100644 --- a/src/index.txt +++ b/src/index.txt @@ -5,12 +5,18 @@ made with <3 by DutchCoders Upload: $ curl --upload-file ./hello.txt {{.WebAddress}}hello.txt -Encrypt & upload: +Encrypt with gpg & upload: $ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" {{.WebAddress}}test.txt -Download & decrypt: +Download & decrypt with gpg: $ curl {{.WebAddress}}1lDau/test.txt|gpg -o- > /tmp/hello.txt +Encrypt with openssl & upload: +$ cat /tmp/hello.txt|openssl aes-256-cbc -pbkdf2 -e|curl -X PUT --upload-file "-" {{.WebAddress}}test.txt + +Download & decrypt with openssl: +$ curl {{.WebAddress}}1lDau/test.txt|openssl aes-256-cbc -pbkdf2 -d > /tmp/hello.txt + Grep pound from syslog and transfer cat /var/log/syslog|grep pound|curl --upload-file - {{.WebAddress}}pound.log