Hi folks.
I'm going to tell you how to encrypt your passwords with MD5, so they arent snatchable from your server-side accounts, nor from your packets.
The MD5 checksum is only 16 bytes long, so you will be able to shrink the size of Account.Password by 4 bytes! Yay!
First download the "MD5 Digest" code, and add the class to client:
http://www.frez.co.uk/freecode.htm
No go to modTypes both server side and client side and change
Code:
Password as String * NAME_LENGTH
to
Code:
Password as String * 16 'Length of our MD5 checksum
Now, client side, find SendNewAccount, SendDelAccound, and SendLogin.
Code:
Change Trim$(Password) to MD5.MD5(Password)
At the begining of each sub, add
Code:
Dim md5 As CMD5
Set md5 = New CMD5
and at the end of each sub, add
Code:
Set md5 = Nothing
And that's all there is to it! Keep in mind that you will not be able to recover users passwords, and you might want to make a simple utility to reset someone's password, or add that functionality server side.
~Dave