Waqar ahmad
Waqar ahmad

Reputation: 139

Secure way to connect database in website using java servalet JSP or JSTl

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

Answers (2)

James Corcoran
James Corcoran

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

Rajesh
Rajesh

Reputation: 3014

Use hibernate,Encrypt your password and database credential(url,userid,paswd,portno etc)

Upvotes: 0

Related Questions