TOTP MFA Code Generator returns error "Character is not a Base32 character"
145
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:01 PM
Symptom
TOTP MFA Code Generator could not generate MFA code. It returns the
[05/10/2022 | 01:45:15] | :: | PSMDU018E Dispatcher error: [Following error occurred: Function GetSessionPropertyBufferLength returned with an error.]
[05/10/2022 | 01:45:16] | :: | PSMDU018E Dispatcher error: [Following error occurred: Character is not a Base32 character.
Parameter name: c]
below error
Environment
12.2;12.4;12.3;12.5;12.6 Privileged Access Manager (PAM, self-hosted) PSM TOTP MFA Code Generator Version 1.0
PVWA 12.2
PSM 12.2
Cause
The "Character is not a base32 character" error is caused by MFA secret includes non -base32 characters.
Base32 uses a 32-character set comprising the twenty-six upper-case letters A–Z, and the digits 2–7
Sample output may look like
HX2CVTIILC4HKP3XLLOQ2N4LECRGUMJQGKGDYNCHZYR34ZLQEUQUI2VYMVTWKPS3
Resolution
To resolve the issue, disable special characters for MFA secret generation policy and ensure the new MFA secret doesn't contain 0, 1, 8 and 9 digits.
Customers may consult with their MFA providers for detailed configuration.