Database password encryption

Codes here !

Moderators: macek, egami, gesf

jiyoung
New php-forum User
New php-forum User
Posts: 2
Joined: Thu Nov 15, 2012 12:22 pm

Database password encryption

Postby jiyoung » Thu Nov 15, 2012 12:29 pm

I've been trying to encrypt my vtiger database password.
I read the vtiger tutorial and documents, and searched it on the Internet, but i cannot find any good ideas.

Is there any methods for encryption of the password?

jiyoung
New php-forum User
New php-forum User
Posts: 2
Joined: Thu Nov 15, 2012 12:22 pm

Re: Database password encryption

Postby jiyoung » Fri Nov 16, 2012 9:24 am

$connect = mysql_connect("localhost", "domain.com", "password");
$db = mysql_select_db("database_name", $connect);

Those are what I wanna change.
If you know, please write answers :-)

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm

Re: Database password encryption

Postby seandisanti » Fri Nov 23, 2012 3:20 pm

Some good news and some bad news. The good news is, as long as you're saving that in a file with a .php extension, noone will ever be able to read it from their browser. The bad news is that anyone with access to your source files, say you hire a developer to do some web work for you and you give him full access to your ftp; will have the ability to read any file they want. There are a few ways to obscure your password via obfuscation, but security through obscurity is just fooling yourself anyway. All you can do is control who you give access to, don't re-use passwords, and change passwords when you add or remove users that have access to the relevant files.


Return to “mySQL & php coding”

Who is online

Users browsing this forum: biglittle and 1 guest