The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > General Programming > Visual Basic


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Reply
 
LinkBack Thread Tools    Display Modes   
  #1 (permalink)  
Old 10-23-2007, 05:31 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
Help deciding best way...?

Hey,

I was hoping someone could help me with deciding the best way for me to do the following...

I have or rather will be making an application, this application will not be open source it will just be a exe file. The software is more a project management system that connects to a MySQL database to share information.

The information will be set by the manager of the project to connect to a certain database and then passed on with the .exe (the information being, MySQL server, user and password), obviously this information you do not want others, including anyone which is not a manager to see so i can not just stick the information in an XML file, nor could i just put it on the web in a text file.

What can i do to hide this information yet still use it?

Any ideas would be great.
Lee.
Reply With Quote
  #2 (permalink)  
Old 10-23-2007, 06:20 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Staff*
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 426
iTrader: (0)
TeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enough
Hmmm...Here's a few suggestions, though I'm not a VB programmer:

1) Encrypt it using a password that you can setup on both ends.
2) If VB doesn't have an easy-to-use encryption function and it does have a hashing function, hash the password against a secret seed and use that with the One-time pad - Wikipedia, the free encyclopedia method. This assumes that your hashed code will be used only once, of course.
3) Failing the above 2 methods then ... Not totally sure as encryption is not available then. I can think about it more if you don't have the above 2 options and other suggestions are encouraged!

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #3 (permalink)  
Old 10-24-2007, 04:16 AM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
I have thought about hashing, the problem with hashing is if i hash it i can not use that value again, that value must be used by the program to access the database, as i have said the user would not know this password.

If i where to encrypt it couldn't someone just decrypt it?
Reply With Quote
  #4 (permalink)  
Old 10-24-2007, 01:35 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Staff*
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 426
iTrader: (0)
TeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enough
Quote:
Originally Posted by Lee View Post
I have thought about hashing, the problem with hashing is if i hash it i can not use that value again, that value must be used by the program to access the database, as i have said the user would not know this password.
I understand. What I was saying was to use the hash result as your key for encryption/decryption using the OTP method.

Quote:
Originally Posted by Lee View Post
If i where to encrypt it couldn't someone just decrypt it?
Yes, anything which can be encrypted can be decrypted if the key is available. That's why I suggested having the password setup on both ends -- then it is encrypted during transit.

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #5 (permalink)  
Old 10-24-2007, 01:51 PM
ccoonen ccoonen is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jun 2007
Location: Wisconsin
Posts: 308
iTrader: (0)
ccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished road
Send out your application with a "shared secret". Your app and your website know how to decrypt values... but that's it. deep in your assembly lives the word "chicken-pox" and your website knows "chicken-pox" as well. Just use that value to decrypt and encrypt 256 over SSL.
Reply With Quote
  #6 (permalink)  
Old 10-28-2007, 02:24 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
Thanks for your suggestions, could you possibly tell me or point me to a good source of how to communicate with a MySQL database using SSL from my application?
Reply With Quote
  #7 (permalink)  
Old 10-28-2007, 02:27 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Staff*
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 426
iTrader: (0)
TeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enough
Never done that one myself. It'll be interesting to see what others suggest.

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #8 (permalink)  
Old 10-28-2007, 09:21 PM
ccoonen ccoonen is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jun 2007
Location: Wisconsin
Posts: 308
iTrader: (0)
ccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished road
Well, it doesn't matter how you communicate or save - just make sure u got a legit cert (for SSL). Once you make the "secure" SSL handshake, just encrypt your SOAP values with your shared secret. Heck, you could even pass the shared secret encrypted with a diff shared secret - then you can have an easily instanlty changable encryption key... but anways, use SSL and encrypt your SOAP Values
Reply With Quote
  #9 (permalink)  
Old 10-29-2007, 12:56 AM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
Well i am not sure i will be able to use this as i dont have a SSL cert, have you got any other ways of encryption?
Reply With Quote
Reply


Thread Tools
Display Modes

   Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 10:38 AM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50