I'm trying to implement TOTP in a program that will be run client side. There's a few other questions about storing HOTP/TOTP secrets, but they're about the server-side and aren't completely clear about the client side.
Storing any secrets plaintext seems unsafe, but if I encrypt it, then the user has to enter a password and it defeats the purpose, right?
I can't hash the secrets because I need the original. So is it OK to store HOTP/TOTP secrets plaintext on the client, or am I missing something?