From d6b0403e2aa7b83b1e88210b1b29da298495467d Mon Sep 17 00:00:00 2001 From: Caffeine Fueled Date: Sun, 26 Oct 2025 09:58:54 +0000 Subject: [PATCH] Added Encryption with age --- Usage.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Usage.md b/Usage.md index 130c082..196e275 100644 --- a/Usage.md +++ b/Usage.md @@ -47,4 +47,24 @@ curl -s https://linedump.com/xGuiMp | gpg --decrypt gpg: AES256.CFB encrypted data gpg: encrypted with 1 passphrase Cheers -``` \ No newline at end of file +``` + +--- + +## 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`