Skip to content

Change Encrypt

Featured Replies

Hello there!

 

It's possible to change the default encrypt of L2OFF and the (binary) in database.. to a plain md5 for example or other?

  • Author

Hello! yes, im using hAuthD ...

 

but i have this problem:

 

in hAuthD.ini i set ... MD5Password = 1

 

i added the md5password column in user_auth table...

 

when i loggin the root account for example it save the md5 password:

 

root= dc67bad8744357fa7b96bc0cdf059003

 

But... when i use md5('root') in php for example result

root= 63a9f0ea7bb98050796b649e85481845

 

 

and using the php script made by hAuthD:

 

<?php
function hCrypt($password)
{
   $md5password = 'key';
   $s = md5($password) . md5($md5password);
   $j = 0;
   for ($i = 0; $i < strlen($s); $i++)
   {
      if ($j >= strlen($md5password)) $j = 0;
      $s[$i] = $s[$i] ^ $md5password[$j];
      $j++;
   }
   return md5($s);
}
?>

 

result:

 

root= fd3ce9abc7d425c22152824d8e0b079d

 

This is variable with "KEY" but... in the config files, the KEY isn't configurable.

 


[MSSQL]
Server = 127.0.0.1
User = sa
Password = testpassword
Database = lin2db
SlowQuery = 100

[Tables]
server = server

[Main]
ServerPort = 2104
ServerExPort = 2106
BlowfishKey = 6B60CB5B82CE90B1CC2B6C556C6C6C6C
;For C4: BlowfishKey = 5F3B352E5D39342D33313D3D2D257854215E5B2400
Title =

[L2J]
IP =
Protocol = $103
FixedPorts = 1

[Log]
Auth = 1
Guard = 1
All = 0
DB = 0

[Online]
Multiplier = 1,0
UserCount = 5
Interval = 30

[Admin]
Password = admin
IP = *

[Adv]
EULA = 1
Test = 0
TestServers =
C4 = 0
MaxConnectionsPerIP = 3
AntiDOS = 1
AntiBrute = 0
AntiBruteIP = 0
MD5Simple = 0
SHA1 = 0
Proxy =
AutoReloadFiles = 0
AutoReloadServers = 0
GameProxyMasterStatus = 1

[Ext]
Mask = 0
MD5Password = 1
ExecLogin = 0
Guard = 0

[AntiBrute]
Interval = 90
Penalty = 180
MaxAttempts = 5

[AntiBruteIP]
Interval = 90
Penalty = 300
MaxAttempts = 10
 

under [Ext], you have

MD5Password = 1

that would make "1" your "key", set it to something random and gogo

  • Author

OMFG! i think ... MD5Password 1/0 to enable or disable -_-

 

 

THANKS YOU!!!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.