Unable to add TOTP secret key longer than 18 characters #2274

Open
opened 2025-11-26 23:14:14 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @rmcdowell-bitwarden on GitHub (Jul 7, 2025).

Steps To Reproduce

  1. Open the Authenticator app
  2. Tap the + icon to add a new entry
  3. Tap "Enter key manually"
  4. Enter a key longer than 18 characters

Expected Result

A TOTP entry will be created

Actual Result

Receive the error message "Key is invalid"

Screenshots or Videos

No response

Additional Context

A TOTP secret key longer than 18 characters works on the iOS Bitwarden Authenticator app and when using Bitwarden's Integrated Authenticator

Build Version

2025.6.0

What server are you connecting to?

US

Self-host Server Version

No response

Environment Details

-Device: Samsung Galaxy S25+

  • Android 15
  • One UI 7.0

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
Originally created by @rmcdowell-bitwarden on GitHub (Jul 7, 2025). ### Steps To Reproduce 1. Open the Authenticator app 2. Tap the + icon to add a new entry 3. Tap "Enter key manually" 4. Enter a key longer than 18 characters ### Expected Result A TOTP entry will be created ### Actual Result Receive the error message "Key is invalid" ### Screenshots or Videos _No response_ ### Additional Context A TOTP secret key longer than 18 characters works on the iOS Bitwarden Authenticator app and when using Bitwarden's Integrated Authenticator ### Build Version 2025.6.0 ### What server are you connecting to? US ### Self-host Server Version _No response_ ### Environment Details -Device: Samsung Galaxy S25+ - Android 15 - One UI 7.0 ### Issue Tracking Info - [x] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
GiteaMirror added the app:authenticatorbug labels 2025-11-26 23:14:14 -06:00
Author
Owner

@bitwarden-bot commented on GitHub (Jul 7, 2025):

Thank you for your report! We've added this to our internal board for review.
ID: PM-23470

@bitwarden-bot commented on GitHub (Jul 7, 2025): Thank you for your report! We've added this to our internal board for review. ID: PM-23470
Author
Owner

@Amirnlz commented on GitHub (Jul 16, 2025):

I’ve tested the flow with a TOTP secret key longer than 18 characters (specifically 32 characters), and everything worked as expected — I didn’t encounter any errors.

Here is the test result:

Image

It might be helpful to know a bit more about the steps you're following. For example:

  • Are you entering the key manually or using a QR code?
  • Is the key being rejected immediately, or is the problem occurring later (e.g., during code generation)?
  • Are there any specific error messages or console logs?

With more context, I'd be happy to help investigate further or assist with a fix. Thanks!

@Amirnlz commented on GitHub (Jul 16, 2025): I’ve tested the flow with a TOTP secret key longer than 18 characters (specifically 32 characters), and everything worked as expected — I didn’t encounter any errors. Here is the test result: <img width="411" height="126" alt="Image" src="https://github.com/user-attachments/assets/50f93289-ff58-44ff-b486-788a520a8c7f" /> It might be helpful to know a bit more about the steps you're following. For example: * Are you entering the key manually or using a QR code? * Is the key being rejected immediately, or is the problem occurring later (e.g., during code generation)? * Are there any specific error messages or console logs? With more context, I'd be happy to help investigate further or assist with a fix. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#2274