java - Which would be the best way of encryption for following scenario? -


i want know best java encryption type can use secure application authentication details. in application have use credentials database , 1 application. putting in 1 properties file.

db_username = abc db_password = password  

if dont want password visible in properties file. cant hardcode in application. command prompt application , run using script runs automatically. available encryption methods can use?

thanks..

you take username , password arguments program, call example:

java -jar yourprogram -user john -pass 1234 

you move security issue os (make sure batch accessible authorised users).

alternatively can pass properties file, place secure location.

see this related post.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -