• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

gesior, how to use sha1 encryption?

Linken93

Member
Joined
Apr 6, 2010
Messages
313
Reaction score
7
Location
SWEDEN
Hi!

I'm using encryptionType="sha1" in config.lua and in config-and-function.php I got this,
Code:
if(strtolower($config['server']['useMD5Passwords']) == 'yes' || strtolower($config['server']['passwordType']) == 'md5')
	$passwordency = 'md5';
if(strtolower($config['server']['passwordType']) == 'sha1')
	$passwordency = 'sha1';

So if I'm creating an account with the password test it should be a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 but it doesn't.. It looks like plain passwords in the DB but needs to encrypt the passwords manually in order to login ingame, so it must be a way to do this automatically?

Thanks in advance!
 
Back
Top Bottom