I have to develop a Java 8 SE application that read data from a DB. I need to connect to the DB via username and password. I don't want put the username and password in clear on my application. How can I do this? Is there some example where I can find some solution. This is the first time I do this, so I would want find a good solution.
My application is not distibuited. It is a desktop application that I have to use for internal project. It couldn't go on internet. The Db is on another machine and so I have to connect to it with username and password. I would want avod to insert in my code username and password in clear and so I'm finding a way to do this better...
I run this application from my computer.
I hope to have been more clear.