I have a problem storing a simple password in memory as a String. According to the link, since Strings are immutable , there is a vulnerability to using the String data type to store sensitive data in memory.
https://www.geeksforgeeks.org/use-char-array-string-storing-passwords-java/
Why is char [] preferred over String for passwords?
Can I overcome this security issue by changing a string variable instead of using a char array or String buffer / builder.
for example: String password = "password"; password = null;
. delink. - . .
, .
, char [], . char .
.
String Constant pool.
, . .
, , . ( "" ), , ( ) .
, char, .
Source: https://habr.com/ru/post/1694799/More articles:Failed to destroy functor (module) - ocamlUikit error? viewWillAppear is not called when it should be - iosPython splits the full name into two variables with a possibly verbose name - pythonReact Native TypeScript Images and Static Assets - react-nativeHow to create a circular bottom view? - javaReplace toolbar with collapsible toolbar in different fragments - androidMinimize toolbars and DrawerLayout - androidangular AOT and JIT in the same project - angularWhy is the array index a string in the code below? - javascriptAn htaccess header for a specific domain? - .htaccessAll Articles