Skip to content

Instantly share code, notes, and snippets.

@njgraham
Created November 2, 2021 23:18
Show Gist options
  • Save njgraham/f3531fb5166bd95adf62fb989f1697bf to your computer and use it in GitHub Desktop.
Save njgraham/f3531fb5166bd95adf62fb989f1697bf to your computer and use it in GitHub Desktop.
encrypted-qr-2
# Secrets live in "thefile.txt". The result is an ecrypted QR code. When scanned with a
# QR code scanner that emulates a keyboard (and a terminal window is in focus) it'll prompt
# for the password and display the result.
echo echo \"$(cat thefile.txt | gpg --symmetric --cipher-algo AES256 | base64 --wrap=0)\" \| base64 -d \| gpg --decrypt | qrencode --level H -o encrypted-qr-code.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment