Decode the key deliberately
A 32-character Hex key is 16 bytes; the same characters as text would be 32 bytes. Choose Hex or standard Base64 and check for exactly 16, 24 or 32 decoded bytes.
- The key field is raw bytes, not a passphrase or a PBKDF2 input.