Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-20-2006, 05:58 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
passwordmatches() ??

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....
__________________

Reply With Quote
  #2  
Old 09-20-2006, 09:20 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by ZeroTrack View Post
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
Reply With Quote
  #3  
Old 09-20-2006, 10:15 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
wasnt there some kind of builtin encryption in gs1?
Reply With Quote
  #4  
Old 09-20-2006, 10:17 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by projectigi View Post
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.
Reply With Quote
  #5  
Old 09-20-2006, 10:41 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
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
__________________

Reply With Quote
  #6  
Old 09-20-2006, 10:48 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
actually md5 is a hashing algorithm (though some applications of md5 are used as checksums) and base64 is an encoding method, not encryption.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #7  
Old 09-20-2006, 11:00 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
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
__________________

Reply With Quote
  #8  
Old 09-20-2006, 11:05 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Normally tilesets redownload or any images updated in Graal4.
Reply With Quote
  #9  
Old 09-20-2006, 11:06 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Oh true forgot that , prob built in checksum to do that =x. Good call, but like you get the example right?
__________________

Reply With Quote
  #10  
Old 09-21-2006, 12:18 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally Posted by ZeroTrack View Post
MD5 is actually a cryptographic hashing FUNCTION
How does this make it "not an algorithm"?
__________________
Reply With Quote
  #11  
Old 09-21-2006, 02:27 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Quote:
Originally Posted by KuJi View Post
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

Last edited by projectigi; 09-21-2006 at 02:28 PM.. Reason: fix
Reply With Quote
  #12  
Old 09-21-2006, 06:14 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by ZeroTrack View Post
MD5 is actually a cryptographic hashing FUNCTION not an algorithm.
Really? Because MD5 even stands for Message-Digest algorithm 5...
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #13  
Old 09-21-2006, 07:08 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Haha, so does anyone know?
__________________
Reply With Quote
  #14  
Old 09-21-2006, 09:43 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by xAndrewx View Post
Haha, so does anyone know?
=o... Ask skyld? Or we can wait a week for stefan =(. (He tends to read older posts before newer... =( )
Reply With Quote
  #15  
Old 09-21-2006, 11:07 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by projectigi View Post
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():

HTML Code:
if (created)
{
  setstring this.password,#E(password);
}

if (playerchats)
{
  if (passwordmatches(#s(this.password),#c))
    message You got the password!;
  else
    message Invalid password!;
}
Reply With Quote
  #16  
Old 09-21-2006, 11:10 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by Riot View Post
Yes there was.

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

HTML Code:
if (created)
{
  setstring this.password,#E(password);
}

if (playerchats)
{
  if (passwordmatches(#s(this.password),#c))
    message You got the password!;
  else
    message Invalid password!;
}
so then.. basically theres probally something like:

PHP Code:
this.ecpass this.password.encrypt();?

if (
passwordmatches(this.ecpassplayer.chat)) 
?
Reply With Quote
  #17  
Old 09-22-2006, 05:05 AM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
maybe it reads the base64 encryption?... Stefan me boi help us out here =p

#E in GS2 is emoticonchar()

so where did you get encrypt?
__________________

Reply With Quote
  #18  
Old 09-22-2006, 05:09 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by ZeroTrack View Post
maybe it reads the base64 encryption?... Stefan me boi help us out here =p

#E in GS2 is emoticonchar()

so where did you get encrypt?
hm.. #e lowercase is substring.. donno =(
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.