Output format¶
The tool writes a JSON object with all tokens of the backup:
{
"token_count": 1,
"tokens": [
{
"uuid": "0b7e7dee-87e6-4d43-a6a8-0d6a8f8c7c11",
"name": "Example:eve@redhat.com",
"issuer": "Example",
"label": "eve@redhat.com",
"type": "TOTP",
"secret": "GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ",
"secret_encoding": "base32",
"secret_hex": "3132333435363738393031323334353637383930",
"secret_base64": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=",
"algorithm": "SHA1",
"digits": 6,
"period": 30,
"counter": null,
"encoder": null,
"otpauth_uri": "otpauth://totp/Example:eve%40redhat.com?secret=GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ&issuer=Example&algorithm=SHA1&digits=6&period=30",
"keepass": {
"fields": {
"TimeOtp-Secret-Base32": "GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ",
"TimeOtp-Length": "6",
"TimeOtp-Period": "30",
"TimeOtp-Algorithm": "HMAC-SHA-1"
},
"warnings": []
},
"warnings": [],
"metadata": {
"issuerExt": "Example",
"label": "eve@redhat.com",
"type": "TOTP",
"lastUsed": 1700000000000,
"lastUsed_iso": "2023-11-14T22:13:20+00:00"
}
}
],
"undecryptable_token_count": 0,
"undecryptable_tokens": [],
"unrecognized_entries": []
}
Notes:
counteris only set for HOTP tokens.encoderis"steam"for Steam tokens, which use 5 character codes from a special alphabet.metadataholds the token data exactly as FreeOTP stored it, so nothing gets lost.warningslists things to watch out for when importing the token elsewhere.- HOTP counters may be outdated: FreeOTP only writes a token to the backup when you add or rename it, not when it generates a code. Check the counter against the app, or resynchronize with the service.
- Tokens whose secret cannot be decrypted are listed in
undecryptable_tokens, see Tokens which cannot be decrypted.