vt-middleware / passay

Password policy enforcement for Java.
http://www.passay.org
Other
281 stars 64 forks source link

Consider exposing generated password from PasswordGenerator as a char array or buffer #126

Open bindul opened 3 years ago

bindul commented 3 years ago

It would be convenient to be able to get the generated password from PasswordGenerator as a char[] or CharBuffer. This would allow us to wipe out contents in the array to avoid Heap_Inspection risk flagged by Static Application Security Tool scans. Creating a String from the buffer with the generated password is disliked by those tools.

maulijmehta commented 2 years ago

Hi, I am facing with same in org.passay.PasswordData where password filed as String. If this password field as char[] this would help and resolve our Cleartext Storage of Sensitive Information in Memory issue flagged by veracode.