What exactly does this function do? I've tried everything I can think of base64 and md5 string matching, reg string matching, account and password string matching. Nothing works... can anyone explain the backend of this function for me please....

KuJi

09-20-2006, 09:20 PM

What exactly does this function do? I've tried everything I can think of base64 and md5 string matching, reg string matching, account and password string matching. Nothing works... can anyone explain the backend of this function for me please....

passwordmatches(str, str) - returns boolean

Does it just compare too strings or something? o.O

projectigi

09-20-2006, 10:15 PM

wasnt there some kind of builtin encryption in gs1?

KuJi

09-20-2006, 10:17 PM

wasnt there some kind of builtin encryption in gs1?

GS2 there is md5(whatever) in which you can compare the md5's by whats in the database to whatever they type in.

ZeroTrack

09-20-2006, 10:41 PM

Err its not a string compare, like i said lol. MD5 is a checksum, not an encryption, base64 is an encryption =p

**Edit**
While were on the topic the MD5 hash is a good thing to use to make sure files were downloaded to the client correctly and not damaged in the transfer. In case you already didn't know that. That'll help if your server is having issues download the tilesets to the clients its also good if you update your tileset a lot instead of having the user redownload it every time they log on just use the MD5 hash to check if they have the updated tileset. Its rather a wonderful checksum :)

JkWhoSaysNi

09-20-2006, 10:48 PM

actually md5 is a hashing algorithm (though some applications of md5 are used as checksums) and base64 is an encoding method, not encryption.

ZeroTrack

09-20-2006, 11:00 PM

Ok if you really want to get technical because I was using short terms, MD5 is actually a cryptographic hashing FUNCTION not an algorithm.

And base64 is actually just is a place value notation use a base of 64 :)

Thanks for trying to correct me though. =p

KuJi

09-20-2006, 11:05 PM

Normally tilesets redownload or any images updated in Graal4.

ZeroTrack

09-20-2006, 11:06 PM

Oh true forgot that , prob built in checksum to do that =x. Good call, but like you get the example right?

Googi

09-21-2006, 12:18 AM

MD5 is actually a cryptographic hashing FUNCTION

How does this make it "not an algorithm"?

projectigi

09-21-2006, 02:27 PM

GS2 there is md5(whatever) in which you can compare the md5's by whats in the database to whatever they type in.

i said gs1 ¬_¬
there was a built-in encryption in gs1 :O

Tolnaftate2004

09-21-2006, 06:14 PM

MD5 is actually a cryptographic hashing FUNCTION not an algorithm.
Really? Because MD5 even stands for Message-Digest algorithm 5...

xAndrewx

09-21-2006, 07:08 PM

Haha, so does anyone know?

KuJi

09-21-2006, 09:43 PM

Haha, so does anyone know?

=o... Ask skyld? Or we can wait a week for stefan =(. (He tends to read older posts before newer... =( )

Riot

09-21-2006, 11:07 PM

wasnt there some kind of builtin encryption in gs1?
Yes there was.

In GS1 (serverside), you would encode a string using #E and check it using passwordmatches():