VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Client/Server Authentication Example (winsock)

by Andrew A (7 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

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)

Download Client/Server Authentication Example (winsock)

Download Client/Server Authentication Example (winsock) (16 KB)

Client/Server Authentication Example (winsock) Comments

No comments have been posted about Client/Server Authentication Example (winsock). Why not be the first to post a comment about Client/Server Authentication Example (winsock).

Post your comment

Subject:
Message:
0/1000 characters