recovery · 8 October 2026 · 3 min read
Recover a Tagcrypt record without the app

A backup you can only open with one app is a risk. Tagcrypt publishes its record format and a small Python script, so a record can be decrypted on any computer with Python. This post walks through it, starting with a safe test.
Scope. The script reads records in formats v2 to v6, including records that hold several named secrets, using the passphrase. It cannot use a FIDO2 security key, so a record that also has a passphrase is opened with that passphrase, and a record protected by a security key alone cannot be opened by the script. Older device-bound records from early builds are no longer supported and cannot be recovered.
What you need
- A computer you trust, with Python 3.
- The Python package
cryptography. - The record's Base64 text, copied from the tag.
- Your passphrase.
1. Get the script and check it
Download tagcrypt_v2_decrypt.py and SHA256SUMS.txt from the format page into one folder, then check the file has not been altered:
sha256sum -c SHA256SUMS.txt # Linux
shasum -a 256 -c SHA256SUMS.txt # macOS
Only the files you downloaded need to match. The script is short enough to read in a few minutes, and it never contacts a server or writes the decrypted text to a file.
2. Install the one dependency
python3 -m pip install cryptography
3. Test with the published example first
Before you touch a real record, make sure the script works on your machine using the published test vector. It is a fake record with a fake secret, and the passphrase is public, so never use it for anything real.
Save this line, with nothing else, into a file called test-record.txt:
VFZMVAIBAAknwAABAgMEBQYHCAkKCwwNDg8QERITFBUWFxgZGht82rRamc5CvvBFf4tU//ntlyjgAUTDoqPFgZ3oNjRpBOqd2T4OZ11kf0ewrn1twSW8hQ5tEp0pCsk5u+fiA6ndUQ==
Run the script and, when asked, type the passphrase Café Soho London 1666:
python3 tagcrypt_v2_decrypt.py test-record.txt
The passphrase is not shown as you type. If everything works, the script prints fixture-secret-not-a-real-credential. You can try a wrong passphrase too: it answers "Passphrase is incorrect or the record is damaged." and prints nothing else.
4. Get the record's text off your tag
You need the Base64 string, not a raw dump of the whole tag. The app writes one standard NFC text record. Most NFC reader or tag tools show a text record as a language code (en) followed by the text; the text is the long Base64 string. Copy just that string into a file, for example record.txt. Line breaks are fine, and the script ignores whitespace.
The file contains only ciphertext, so it is safe to keep around, but it is still a copy of your encrypted record. Delete it when you are done.
5. Decrypt
python3 tagcrypt_v2_decrypt.py record.txt
Type your passphrase when prompted. The script prints your secret to the terminal. Passphrases are trimmed and normalised the same way the app does it, so a stray space or a differently typed accented letter will not trip you up.
When you are finished, clear your terminal and its scrollback, because the secret is now on screen, and do this on a private machine.
If it fails
- "Passphrase is incorrect or the record is damaged." Check the passphrase, including capital letters. If it is right, the text you copied may be incomplete: a record that lost even one character cannot be decrypted. Read the tag again.
- "This is not a supported Tagcrypt v2/v3 record." The text is not a v2 or v3 envelope (v4 to v6 records have their own message). It may be a damaged copy, an older device-bound record, or the wrong part of the tag.
- "Input is not valid Base64 Tagcrypt text." The file holds something other than the plain Base64 string, such as the language code or extra labels.
The exact byte layout, with a worked example, is in the v2 specification (and v3 to v6) and the test vector, if you would rather write your own reader. For how the whole thing fits together, start with how an NFC tag backup works.
Written by Fish & Media. Spotted something wrong? support [at] fishandmedia [dot] com