Skip to content

Instantly share code, notes, and snippets.

@ritiek
Created September 20, 2025 16:30
Show Gist options
  • Save ritiek/628ea811790b7594055a02034ec7dee5 to your computer and use it in GitHub Desktop.
Save ritiek/628ea811790b7594055a02034ec7dee5 to your computer and use it in GitHub Desktop.
Display QR codes of TOTPs stored in Bitwarden JSON export
#!/bin/sh
rg '"totp": "' ~/Downloads/bitwarden_export_20250920162136.json | \
sed -E 's/.*"totp": "(.*)".*/\1/' | \
while IFS= read -r x; do
echo "$x"
echo -ne "$x" | qrencode -t UTF8 -o -
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment