Smart Import from KeePass

I just made a small Python script to translate or move the TimeOtp from a KeePass file to Bitwarden.

It needs a process.

  1. Using the KeePass 2 desktop application, navigate to “File” > “Export” and select the “KeePass XML (2.x)” option.
  2. Import the file in your Bitwarden Vault, using “Tools” > “Import” and selecting “KeePass 2 (xml)”
  3. Export the Bitwarden Vault. Go to “Tools” > “Export” and select “.json”
  4. Edit this Python script (Convert TimeOtp from KeePass to Bitwarden or Vaultwarden · GitHub) to find your just exported .json file on line 2, and on line 21 write an export filename.
  5. Run the Python script. Will create a new .json
  6. Purge your Bitwarden Vault. Go to “Account Settings” > “Purge Vault” > type your password
  7. Import the file in your Bitwarden Vault, using “Tools” > “Import” and selecting “Bitwarden (json)”

Done!