VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Client/Server Authentication Example (winsock)

Andrew A  (7 Submissions)   Internet/HTML   Visual Basic 5.0   Advanced   Wed 3rd February 2021

This example provides a good way of how to securly authenticate your client programs when connecting to your server. This prevents the use of 3rd party clients and unauthorized connections (such as telnet connections and 'reverse engeneering').
How it works: Once a client connects, the server transmits an encrypted string of 100 random characters (You may change this) and the client must respond with the decrypted version. The advantage here is, the server will send a DIFFERENT encryption string for each new connection! So if a 'hacker' finds out what code the client sent back, it will be of no use to him as when a new connection is made, a different 'key' is required to be sent back!
This program also supports the authentication of more than one connection at a time.
I would appreciate votes and comments, and would love to know if you use this method in any program you make.
Thanks! :D

Assumes
Note: This program uses VB6's SPLIT() function, you will need to find an alternative for use in VB5 and less. There is a VB5 version of the SPLIT() command posted on PSC somewhere!

Rate Client/Server Authentication Example (winsock) (4(4 Vote))

Download Client/Server Authentication Example (winsock)

Client/Server Authentication Example (winsock) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters