FreshmenProgrammer
Programmer
I was just wondering how i can encrypt or hide the connection string or mainly the username and password information from users. I am connecting to mySQL through .jsp here. Also I am coding a test program with mySQL but i have to connect to DB2 connect. Will that be a hard transition and is the encryption for logging in the same as it would be here. I new to programming. I hope someone can help me out. Thank you.
Code:
String connectionURL = "jdbc:mysql://localhost:3306/test2?user=whatever&password=whatever";