bitwarden / bitwarden/android

Unable to add TOTP secret key longer than 18 characters

Open
#5,486 2 comments 0 reactions 0 assignees View on GitHub
app:authenticator bug
Dominant language
Kotlin
Stars
9.4k
Forks
1.1k
Avg merge
1d 14h
Merged PRs (30d)
67

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.