Reputation: 139
I want a secure database connection, Best way in java to connect database in my website.I want to avoid hackers to hack my database that's why i want tips to implement database connection which is secure fro outside world.
Upvotes: 0
Views: 671
Reputation: 320
Encrypting your password and other credentials as suggested by @Rajesh is good practice (although not sure why he suggests Hibernate, a great framework but not required for a secure connection). But your connection to the database still won't be secure. However SSH tunneling is a common way to establish a secure connection from an application to a database.
Upvotes: 1
Reputation: 3014
Use hibernate,Encrypt your password and database credential(url,userid,paswd,portno etc)
Upvotes: 0