...
Using Object.equals()
to compare cryptographic keys may yield unexpected results.
Bibliography
[API 2006] | |
[Sun 2006] | Determining If Two Keys Are Equal (JCA Reference Guide) |
...
MSC03-J. Never hardcode sensitive information 49. Miscellaneous (MSC) MSC05-J. Store passwords using a hash function