Added Encryption with age
parent
9568d6795e
commit
d6b0403e2a
1 changed files with 21 additions and 1 deletions
20
Usage.md
20
Usage.md
|
|
@ -48,3 +48,23 @@ gpg: AES256.CFB encrypted data
|
|||
gpg: encrypted with 1 passphrase
|
||||
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