Why is char[] preferred over String for passwords?

Subscribers:
4,110
Published on ● Video Link: https://www.youtube.com/watch?v=Ool4m5Gxq0g



Duration: 5:18
2 views
0


Why is char[] preferred over String for passwords?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(stackoverflow.com/users/953140/ahamed)Ahamed |
(stackoverflow.com/users/22656/jon-skeet)Jon Skeet |
(stackoverflow.com/users/277683/konrad-garus)Konrad Garus |
(stackoverflow.com/users/372643/bruno)Bruno |
(stackoverflow.com/users/1011704/alephx)alephx |
(stackoverflow.com/users/216111/josefx)josefx |
A special thanks goes out to the (https://stackoverflow.com/questions/8881291/why-is-char-preferred-over-string-for-passwords)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

security string passwords java char







Tags:
security
string
passwords
java
char