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 08-15-2007, 10:00 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: 615
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
VB.NET and MySQL

Hey,

I have used VB.NET and MySQL together before for my own personally use with my own site but i am planning on making a program for a friend which everyone on the internet could download.

My question is if i am connecting to a database with his passwords and getting information and someone used a packet sniffer or something like that, is it then possible for them to get the password? (if not thats good lol).

Also when using VB.NET and MySQL do you have to remove slashes and things such as that to stop users getting information they shouldnt/deleting the database like you would do in a PHP script? and is there any other things i should do to protect the database and program?

Thanks,
Lee.
Reply With Quote
  #2 (permalink)  
Old 08-17-2007, 07:43 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,109
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
Is that an encrypted connection? Meaning it's within a secured server (https://), if not then most likely it's going to be transmitted as plain text and it's possible for them to get the password...

__________________
PHP Code:
System.out.println("Hello World!"); 

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 08-17-2007, 08:17 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
Even https is "H4x0r4bl3"

I would strongly advise 1-way hashing it (maybe md5? or sha1?)... and it doesn't matter if it's over http or https - much harder to decrypt and its a 1-way encryption so it cant be decrypted
Reply With Quote
  #4 (permalink)  
Old 08-25-2007, 04:18 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: 615
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
If i hashed it with sha1 how would i then connect to the database, the application directly connects to the database so it would try to connected with a password that has been hashed, therefore it will not connect?
Reply With Quote
  #5 (permalink)  
Old 08-28-2007, 06:39 PM
hakkoz
Posts: n/a
can u pls give me a program about calculator in assembly language

__________________

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
  #6 (permalink)  
Old 08-28-2007, 07:46 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
Lee: You don't need to "Decrypt" a 1-way encrypted password. You just need to re-encrypt what the user supplied and compare against the already encrypted password.

So if the admin choose a password, and encrypted it using SHA1 with a Key "CoolBeans12345"... It would spit out a huge string as the password.

Then the user logged in... the application or website would know to encrypt the password that the user supplied with "CoolBeans12345" - now I have that string, compare it against the Admin Password.
Reply With Quote
  #7 (permalink)  
Old 08-29-2007, 04:40 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: 615
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
The user wont be inputting anything, i am not quite sure you understand what i am saying, i think i will drop this for now.
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 06:08 PM. 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