Ente Auth is an open-source app for generating two-factor authentication codes. It can work offline without an account. With an account, you can back up codes to the cloud and sync them across devices with end-to-end encryption.