| View previous topic :: View next topic |
| Author |
Message |
blizzardaxe Newbie
Joined: 20 Feb 2004 Posts: 10
|
Posted: Sep 23rd, 2004 08:24 AM Post subject: secure database connection |
|
|
hey
ive got a database connection with a free online mysql database but everyone who uses the problem should be able to use the databases without knowing the password. and if i include the password in the project they can hex it or something. how to preotect this? _________________ [link]
--------------------------------
[link] |
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Sep 24th, 2004 04:05 PM Post subject: |
|
|
Encrypt it. Use an encryption algorithm to get the encrypt it. Then, add the encrypted password in your code. Then with code, you decrypt it and use it to connect to the database  _________________ No one is completely useless. They can at least be an example of what to avoid. |
|
| Back to top |
|
Andir Centurion

Joined: 21 Dec 2003 Posts: 184 Location: Chicago Area
|
Posted: Oct 9th, 2004 07:29 AM Post subject: |
|
|
You can use the RC4 encryption algorithm I posted here:
[link]
This way your only making it harder to get the password. If a person has enough talent and initiative to Hex edit a program it's only time before they hex edit the outgoing TCP/UDP streams. If it's imperative to encrypt the data, I'd look to see if MySQL supports something like SSL connections. _________________ If you happen to see little people sitting on your desk...don't tell anyone or they might think your crazy too. |
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Oct 9th, 2004 04:22 PM Post subject: |
|
|
MySQL does support SSL connections...
[link] _________________ No one is completely useless. They can at least be an example of what to avoid. |
|
| Back to top |
|
|