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
SecureString.toString returns a masked value like [***]. However, the number of * returned is taken from the number of characters of the contained password, exposing it's length. I suggest to always return the same constant (e.g. [*****]) instead.
The text was updated successfully, but these errors were encountered:
Even if #lenght() exposes the length of the password, hiding the numbers of the characters in #toString() may prevent data leaks; a case example is a developer that accidentally uses a SecureString object in a method that calls #toString() on some of its arguments (e.g. PrintStream).
SecureString.toString
returns a masked value like[***]
. However, the number of*
returned is taken from the number of characters of the contained password, exposing it's length. I suggest to always return the same constant (e.g.[*****]
) instead.The text was updated successfully, but these errors were encountered: