java - how to avoid memory storing String -


i'm using java library implementation of argon2 requires use char array passwords.

for testing purpose, want try works before adding website have comprehension difficulties how not store string input before convert char array.

basically i'm using eclipse ide can't use console console = system.console() use function console.readpassword(). reproduce i'm trying :

char[] password = new string("test").tochararray(); 

but @ point string in memory , can catch malicious soft, isn't ?

the argon2 library provides function wipe array, string stay here, doesn't ?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -