Privacy and cookie policy

2022-07-17 12:46

Using KeePass as an MFA / 2-step sign-in method with Microsoft consumer accounts

This post is about using KeePass with Microsoft consumer accounts (,, e5tc.) for the 2-step verification process. General considerations about using KeePass as a storage for TOTP keys and generator of one-time-password, can be found here:

The following steps assume the 2-step-verification has been already activated. If not already active, some more steps are needed. But the fundamental ones are the same

Login into Select Security from the top bar and select Advanced security options:

Select “Add a new way to sign in or verify”:

Select “Use an app”:

Select “set up a different Authenticator app”:

Select “I can’t scan the bar code”:

Copy and paste the Secret key:

Paste the secret key into Otp generartor setting of the KeePass entry:

Remove white spaces from the secret key if present. KeePass immediately start generating OTP codes:

Copy and paste the generated value into the browser and press Next

If everything worked, a new method has been added:

Now you can use the OTP generated by KeePass during the login process.

DISCLAIMER: Content and opinions are my own. None of the ideas expressed in this web-site are shared, supported, or endorsed in any manner by my current or former employers. Nothing here should be taken seriously and you understand and accept that you can use any suggestions, ideas, techincal solutions on this web-site only at your own risk. All trademarks are property of their respective owners.