Added Encryption with age
parent
9568d6795e
commit
d6b0403e2a
1 changed files with 21 additions and 1 deletions
22
Usage.md
22
Usage.md
|
|
@ -47,4 +47,24 @@ curl -s https://linedump.com/xGuiMp | gpg --decrypt
|
||||||
gpg: AES256.CFB encrypted data
|
gpg: AES256.CFB encrypted data
|
||||||
gpg: encrypted with 1 passphrase
|
gpg: encrypted with 1 passphrase
|
||||||
Cheers
|
Cheers
|
||||||
```
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Encryption with age and SSH key pair
|
||||||
|
|
||||||
|
**Upload**
|
||||||
|
|
||||||
|
String:
|
||||||
|
: `echo "Cheers" | age -R ~/.ssh/id_ssh.pub | base64 | curl -X POST --data-binary @- https://linedump.com`
|
||||||
|
|
||||||
|
File:
|
||||||
|
: `age -R ~/.ssh/id_ssh.pub -o - file.txt | base64 | curl -X POST --data-binary @- https://linedump.com`
|
||||||
|
|
||||||
|
Command:
|
||||||
|
: `ip -br a | age -R ~/.ssh/id_ssh.pub | base64 | curl -X POST --data-binary @- https://linedump.com`
|
||||||
|
|
||||||
|
**Download**
|
||||||
|
|
||||||
|
Save to file:
|
||||||
|
: `curl -s https://linedump.com/{paste_id} | base64 -d | age -d -i ~/.ssh/id_ssh > output3.txt`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue