Guest User

Untitled

a guest
Jun 11th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. Hello guys, i need some hint about encoding of account password algorithm. I already checked the function that is used in the Java based Aion emulators,but its not the same probably because they are using another Auth server.
  2.  
  3. This is the function that emu's use for password encoding:
  4. [QUOTE] $password = trim($pass1);
  5. $password = base64_encode(sha1($password, true));
  6.  
  7. $sql_ls->query("INSERT INTO account_data (name,`password`,`email`) VALUES ('$name','$password','$mail')");[/QUOTE]
  8.  
  9. Generated this way,the password is not the same like the password generated from Auth server (there is auto registering account function if user is not exist.)
  10.  
  11. For example if the password is 'test' auth server encoded it like 0xC8AC3DBDC10541CF796BC8220BA7834A
  12. Same password encoded with emu's algorithm $password = base64_encode(sha1($password, true)[/URL]);) is : qUqP5cyxm6YcTAhz05Hph5gvu9M=
  13.  
  14.  
  15. I need to find how the password is encoded for make a custom password register form.
  16. Any hint will be in help for me.
  17.  
  18. Regards
Add Comment
Please, Sign In to add comment