Jump to content
Sign in to follow this  
Luigi

Error to coding the a password to Lineage II

Recommended Posts

Luigi

I try make a little software to administrate some functions in my private server's Lineage II, and I have a dificulty with store password.

The original algorithm to code password is this (in PHP, to make/edit an account)

//echo $pass;

// public function l2j_encrypt ($pass) {return base64_encode(pack("H*", sha1(utf8_encode($pass))));}

//echo l2j_encrypt($pass);

In PHP I split function by function...

The PHP script show step by step what I do make...

Based in this, I write in AutoIt the script...

The script in PHP return '2OKaPbDjdTmPFZYIX7p5uHk48Ia=' for my password 'Curitiba'...

But, the script in AutoIt return '2OKaPbDjdTmPFZYIX7p5uHk48IY=' for the same password.

Only the penultimate characters's password is diferent... 8(

Only a character diferent...

I read this script many times and now, I don't have idea what is wrong...

Maybe I can´t see the error, someone can help-me to see that?

Edited by big_daddy

Visit my repository

Share this post


Link to post
Share on other sites
bogQ

Private server usage isnt legal for that specific game, + probably braking the rules for discusing about games, pls read Forum Rules for more info about games, as for illegal server, try not to post your or someone else illegal work on this forum.

thread reported.

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites
GEOSoft

When are people going to learn that any forum you join will have rules. You MUST locate, read and follow those rules before making an idiotic post that violates them.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×