Just a little question, many of u shouled know.
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 2
- Joined: Mon Apr 07, 2008 9:41 pm
Just a little question, many of u shouled know.
That's helpfull for me.
What encryption(s) does l2 use on the login and gameserver...
Anything special about these algos?
And what other game is very close to that?
You can simply outline the login procedure since theres not that much to say about the gameserver
What encryption(s) does l2 use on the login and gameserver...
Anything special about these algos?
And what other game is very close to that?
You can simply outline the login procedure since theres not that much to say about the gameserver
-
- Posts: 37
- Joined: Thu Aug 06, 2009 7:55 pm
Re: Just a little question, many of u shouled know.
as far as i know, password is sent plaintext to the server. the only encryption that happens is when the password is converted to SHA1 then encoded in base64 (i think, might be wrong about the second part).
what's funny is that we store the password in encrypted format but it's still sent plaintext in the first place. so why even bother storing it in SHA1 then encoded to base64? if someone has access to your accounts table, it's all over anyway.
what's funny is that we store the password in encrypted format but it's still sent plaintext in the first place. so why even bother storing it in SHA1 then encoded to base64? if someone has access to your accounts table, it's all over anyway.
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Just a little question, many of u shouled know.
You can't do anything with passwords in plain text - this is client and its illegal to mod it.
Also SHA1 is irreversible, and only possible way to retrieve passwords - bruteforce.
Also SHA1 is irreversible, and only possible way to retrieve passwords - bruteforce.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 2
- Joined: Mon Apr 07, 2008 9:41 pm
Re: Just a little question, many of u shouled know.
Well you got nothing right ;(
Base64 is not an encryption really nor does the client use SHA1 thats an l2j invention to safely store passwords...
And te password is not send plaintext either.
Base64 is not an encryption really nor does the client use SHA1 thats an l2j invention to safely store passwords...
And te password is not send plaintext either.
-
- Posts: 37
- Joined: Thu Aug 06, 2009 7:55 pm
Re: Just a little question, many of u shouled know.
but what's the point of storing the password in the database in an encrypted format? why not store it plaintext?_DS_ wrote:You can't do anything with passwords in plain text - this is client and its illegal to mod it.
Also SHA1 is irreversible, and only possible way to retrieve passwords - bruteforce.
not asking how to do it, i know how to change that if i wanted. just asking why it's done.
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Just a little question, many of u shouled know.
Personally myself will prefer server with hashed passwords instead of plaintext. Security, you know 

Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 37
- Joined: Thu Aug 06, 2009 7:55 pm
Re: Just a little question, many of u shouled know.
security from what? >_>_DS_ wrote:Personally myself will prefer server with hashed passwords instead of plaintext. Security, you know
like i said, if your accounts table is accessible, chances are your password is already gotten. decode from base64, then you have the SHA1 hash and then you can use sites like this to see if it's a relatively simple pass http://www.sha1-lookup.com/
Otherwise you can run a gpu based bruteforcer and do 100 million hashes a second (or more if you have a better video card). :-p
i dunno, just seems silly that we store it like that for no real reason.
- DrHouse
- L2j Inner Circle
- Posts: 912
- Joined: Mon Jan 22, 2007 12:14 am
- Location: Spain
Re: Just a little question, many of u shouled know.
Well, I feel my balls safer knowing that my bank stores my password hashed rather than plain text. Imagine a hacker (or an employee) gets access and read some of them without being detected... fatal... Despite L2J server is not a bank, in the past we chose to use encryption to increase security a bit (since plaintext password is never really needed by administrator)

Leadership and management are not talk and talk, but talk and do
Proud of being a part of this project
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: Just a little question, many of u shouled know.
very smartDrHouse wrote:Well, I feel my balls safer knowing that my bank stores my password hashed rather than plain text. Imagine a hacker (or an employee) gets access and read some of them without being detected... fatal... Despite L2J server is not a bank, in the past we chose to use encryption to increase security a bit (since plaintext password is never really needed by administrator)
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Just a little question, many of u shouled know.
If you fear it - does not use simple passes. Or build your own password storage.snap wrote:security from what? >_>
i dunno, just seems silly that we store it like that for no real reason.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
- devo
- Posts: 798
- Joined: Mon Jun 15, 2009 1:19 pm
Re: Just a little question, many of u shouled know.
a lot of ppl use same password for all their logins, everywhere. if hacker use sql injection (not protected drop tool) he can get all passwords, and try to connect it with other accounts, not just ingame.
A hero of war is that what they see...
-
- Posts: 37
- Joined: Thu Aug 06, 2009 7:55 pm
Re: Just a little question, many of u shouled know.
True, but...devo wrote:a lot of ppl use same password for all their logins, everywhere. if hacker use sql injection (not protected drop tool) he can get all passwords, and try to connect it with other accounts, not just ingame.
1. At that point the entire accounts table is compromised. Meaning hashes can be grabbed and bruteforced in a matter of hours using a GPU based bruteforcer (I have one, trust me, they work

2. Unless the admin also stores email addresses in the accounts table (assuming they have a registration system and they set it up to log the emails in the accounts table), then it would require some social engineering just to get someone's email addy from them in game.
I mean, I understand why someone people like to have it. I just don't see a need for it. Once the accounts table is open, game over. That's the end of it. Regardless of whether or not the passwords were encrypted. Oh, and with an SLI setup, you can do about 200+ million SHA1 hashes per second. Compare that to about 4 million per second with a 2Ghz processor using Cain & Abel.
http://www.insidepro.com/eng/egb.shtml
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Just a little question, many of u shouled know.
And what ? After changing encryption scheme forum will be full of noob-admins, crying "no one can login to my server, help me !!1111".
Not interesting. Feel free to change encryption on your server as you want.
Not interesting. Feel free to change encryption on your server as you want.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
- DrHouse
- L2j Inner Circle
- Posts: 912
- Joined: Mon Jan 22, 2007 12:14 am
- Location: Spain
Re: Just a little question, many of u shouled know.
Yap... changing crypt now would be messy for a big bunch of newbie administrators without a "change your password" function 
If changing crypt algo is really necessary (is it?) we could code a simple temporary web service inside gameserver to change passwords...

If changing crypt algo is really necessary (is it?) we could code a simple temporary web service inside gameserver to change passwords...

Leadership and management are not talk and talk, but talk and do
Proud of being a part of this project
- ThePhoenixBird
- L2j Inner Circle
- Posts: 1857
- Joined: Fri May 27, 2005 5:11 pm
Re: Just a little question, many of u shouled know.
da 'ol /password command
it could be rewriten as something like:

it could be rewriten as something like:
Code: Select all
Step #1/accountupdate <login> <oldpass> <newpass> <email> Step #2/accountverify <login> <newpass> <verifycode> Note: <verifycode> is sent to <email> using the gameserver webserver email function.