Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting

Post new topic   Reply to topic
secure database connection
View previous topic :: View next topic  
Author Message
blizzardaxe
Newbie


Joined: 20 Feb 2004
Posts: 10

PostPosted: Sep 23rd, 2004 08:24 AM    Post subject: secure database connection Reply with quote

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
View user's profile Send private message
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Sep 24th, 2004 04:05 PM    Post subject: Reply with quote

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 Wink
_________________
No one is completely useless. They can at least be an example of what to avoid.
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Andir
Centurion


Joined: 21 Dec 2003
Posts: 184
Location: Chicago Area

PostPosted: Oct 9th, 2004 07:29 AM    Post subject: Reply with quote

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
View user's profile Send private message
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Oct 9th, 2004 04:22 PM    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic