浏览代码

Add openssl example to index.txt

at-2021
Ross Smith II 3 年前
committed by GitHub
父节点
当前提交
ea256e4ede
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. +8
    -2
      src/index.txt

+ 8
- 2
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



正在加载...
取消
保存