Created
November 2, 2021 23:18
-
-
Save njgraham/f3531fb5166bd95adf62fb989f1697bf to your computer and use it in GitHub Desktop.
encrypted-qr-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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