I recently discovered the fantastic andOTP android TOTP app, and promptly installed it. It does everything I want, including GPG-encrypted backups, so I wanted to migrate my codes from the unmaintained FreeOTP to it. Unfortunately, there’s no built-in migration function, so I wrote a short script to do that.

The script used to be on this page, but it made more sense to put it up on Gitlab, so now you can download it at:

https://gitlab.com/stavros/freeotp-to-andotp-migrator

I hope you find it useful!