Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Apr : Simple hash algorythm

www.cryer.info
Managed Newsgroup Archive

Simple hash algorythm

Subject:Simple hash algorythm
Posted by:"Craig Hammon" (firebirdwebg..@hotmail.com)
Date:Sat, 5 Apr 2008 10:11:52

Hi,
Im sending a fixed sized structure/record over TCP/IP.. Works great..
It does however send back a return value, used for authentication.

I want to encrypt or hash the data, so the record wont make any sense..
It doent need to be overkill..Its not NASA secrets :)
However, I would prefer something that will encrypt it an leave the record
the the same size every time.. As the server and client are expecting a
fixed size.. Is there a hash or encrypt algorytm that will maintain the
original size?


// The record..
type
  TUser = record
    User : string[15];
    Ret: Integer;
    Pass: string[15];
    Account : string[15];
  end;

Replies:

www.cryer.info
Managed Newsgroup Archive