You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As with all other StringKeyGenerators and BytesKeyGenerators, developers should be free to choose an output length as small as they wish.
Current Behavior
Throws IllegalArgumentException if keyLength is less than 32.
Context
I want to generate random keys that are reasonably easy for humans to transcribe.
Base64 provides a good balance of usable character set and entropy per character.
However, this forces a minimum of 43 characters (⌈ 32 * 4/3 ⌉), which is unreasonable for human use.
The text was updated successfully, but these errors were encountered:
Expected Behavior
As with all other
StringKeyGenerator
s andBytesKeyGenerator
s, developers should be free to choose an output length as small as they wish.Current Behavior
Throws
IllegalArgumentException
ifkeyLength
is less than 32.Context
I want to generate random keys that are reasonably easy for humans to transcribe.
Base64 provides a good balance of usable character set and entropy per character.
However, this forces a minimum of 43 characters (
⌈ 32 * 4/3 ⌉
), which is unreasonable for human use.The text was updated successfully, but these errors were encountered: