DEV Community

Discussion on: How to securely store passwords?

Collapse
 
aminmansuri profile image
hidden_dude

For maximum security I would suggest you use byte[] or char[] in memory rather than strings and overwrite the arrays right after you use them.

Strings are prone to linger in memory and can be recovered from a core dump or other such attacks.