Home » Blog
date 29.Nov.2026

■ PC-based TOTP generation for online banking 2FA


I never understood why banks et al insist on a smartphone with google authenticator to generate "secure" passwords for 2-factor authentication (time-based one-time passwords aka TOTP). As it turns out there is no magic linking your telephone number with the numbers spit out by google authenticator app. In my smartphone naïveté I imagined that the banks somehow only allowed TOTP codes generated from the account-declared telephone number, but this is not so. The TOTP algorithm (basically a SHA1 variant defined in RFC 6238) only uses the starting code that the bank links to your account, and is oblivious whether it runs on a phone or your laptop.

So I had all these heated arguments with online banking customer service people for nothing. They insist a smartphone is required probably because they don't know any better. Lately my credit card payment processor (paypro) also forced 2FA on logins, forcing me to research this topic, leading to the sanguine realization that smartphone isn't a necessary ingredient.

Paypro recommend a browser plugin to generate codes. Why must everything run in a browser? Thankfully there are standalone programs that can do the same job, as the following 2 open-source projects:
  • WinAuth a small purpose-built TOTP generator (albeit abandonware, it works fine).
     
  • KeePassXC a password manager really that does TOTP on the side.
As I don't need a password manager I opted for WinAuth. Make sure you setup an access password
winauth at work
I have tested WinAuth side by side with google authenticator app, and for the same "bank code" (test prompt JBSWY3DPEHPK3PXP) they return the same 6-digit number/password, which expires after 20 seconds.

■ What novel security?


You remember once upon a time 2 factor authentication was an SMS code sent to your mobile phone. It made sense to me. Then quoting mysterious "SMS delivery hacking" vulnerabilities the banking establishment forced on us these newfangled TOTP as quintessential "security" accessing our money. IMHO it is a step backwards, if you consider how TOTP algorithm works: By removing the registered phone number from the picture, the authentication procedure is weakened, instead of strengthened. The edifice relies on a single secret key originally issued by the bank to identify you, which is easily exported from the authenticator app — or otherwise leaked. I held my "smartphone must be necessary" belief for so long because I couldn't believe that they would be as daft as that... but as usual blessed are the poor in spirit!

I suppose that using a smartphone for TOTP generation is a bit safer than installing a program on a PC, involving a separate piece of hardware — on a PC it is only 1.5FA. But both laptops and smartphones are easily lost or stolen, and I imagine smartphones are much easier to hack — unless you don't have one to begin with.

Another issue is keeping a backup of these original bank and what have you secret keys. If your phone is lost or takes an unplanned plunge in the swimming pool, you are screwed unless you have these numbers handy. I don't trust any automatic cloud backups; given the severity of the risk with these numbers (we're talking about money) choosing the right TOTP program to begin with is a difficult decision. Who do you trust with such numbers? That's why I recommended open-source programs above.

These secret numbers should be treated as any other sensitive piece of information like passwords. Encrypted files or even paper hard copies make sense (they are small numbers)

Now I can retire my wife's old smartphone and only use it as a media player in flights. Smartphones begone! <g>

Post a comment on this topic »


©2002-2026 ZABKAT LTD, all rights reserved | Privacy policy | Sitemap