Question on password ecryption

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Locked
User avatar
Eduard
Posts: 15
Joined: Tue Jun 03, 2008 2:09 pm
Location: Lithuania, Vilnius

Question on password ecryption

Post by Eduard »

Hello guys,sorry if I'm posting my question not in the right forum section. I would like to ask one question,whats the account password encryption scheme in l2j? One way hash? If yes then which?
Last edited by Eduard on Tue Oct 26, 2010 11:54 am, edited 1 time in total.
Image
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Quest on password ecryption

Post by _DS_ »

Function loginValid in LoginController.java.
And use search, php function for generating password posted several times.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
JoeDaFlow
Posts: 30
Joined: Tue Mar 02, 2010 8:53 pm

Re: Question on password ecryption

Post by JoeDaFlow »

Eduard wrote:Hello guys,sorry if I'm posting my question not in the right forum section. I would like to ask one question,whats the account password encryption scheme in l2j? One way hash? If yes then which?
Base64(Sha-1)
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: Question on password ecryption

Post by qwerty13 »

By the way, current encryption is very outdated, we should think about something better. Whirlpool, for example.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Question on password ecryption

Post by _DS_ »

No need. Who want another encryption - already using it. Others will just complain "where my paaaaasswords ?".
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
razvypp
Posts: 37
Joined: Mon May 09, 2011 8:56 am

Re: Question on password ecryption

Post by razvypp »

encryption used is base64_encode(pack("H*", sha1(utf8_encode($pass))))
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Question on password ecryption

Post by Zoey76 »

razvypp wrote:encryption used is base64_encode(pack("H*", sha1(utf8_encode($pass))))
Please stop necroposting, this was answered several times in forum.
Powered by Eclipse 4.34 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
Locked