AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to use md5-encrypted passwords? (https://forums.alliedmods.net/showthread.php?t=1462)

bsl.rohling 04-27-2004 15:34

how to use md5-encrypted passwords?
 
hi,

i've configured amxx to use our existing database, but since we're storing the user's password with MD5-encryption... is it possible to use this password in amxx too?

my childish guess to change line # 188 of admin_mysql.sma from
Code:

    else if (equal(password,g_aPassword[index])) {
to
Code:

    else if (equal(md5(password),g_aPassword[index])) {
didn't work :oops:


furthermore a config-option to choose whether to use password-encryption (none,md5,mysql) or not would be great

AssKicR 04-27-2004 15:36

Amx currently doesn't have the capability to code/decode md5 encryption

BAILOPAN 04-27-2004 18:43

I will add an md5() encryption function to all SQL modules for 0.20.

BigBaller 04-27-2004 19:07

Quote:

Originally Posted by BAILOPAN
I will add an md5() encryption function to all SQL modules for 0.20.

haha coming up with good ideas :)

rACEmic 04-28-2004 06:17

Quote:

Originally Posted by AssKicR
Amx currently doesn't have the capability to code/decode md5 encryption

I can't wait till AMX is updated with the ability to decode MD5 encryption. :D

muffin 04-28-2004 09:04

What stops you from using the md5-function in MySQL? I use that one alot since not that many languages supports built-in md5 support.

example:

Code:

SELECT *
FROM users
WHERE password = md5('password')


DopeFish 04-28-2004 11:33

is there any advantage other that that the passwords are not save in clear text in the db any more?

BAILOPAN 04-28-2004 12:06

Passwords should never be cleartext :wink:

IceMouse[WrG] 04-28-2004 16:16

Not everyone in your clan should have rcon access, but look how many people listen to that :roll:

devicenull 04-28-2004 19:47

Quote:

Originally Posted by BAILOPAN
I will add an md5() encryption function to all SQL modules for 0.20.

Can you put it in like engine?
Would be useful for checksums on stuff like AmxGuard.. :)
And most people wouldn't want to use the sql module if they didnt have to

AssKicR 04-28-2004 19:50

maybe add a base64 encoding also.. some guy made that in a module back on amx forums..

QwertyAccess 04-28-2004 19:56

Quote:

Originally Posted by IceMouse[WrG
]Not everyone in your clan should have rcon access, but look how many people listen to that :roll:

not everyone in your clan should have ftp either :roll:


All times are GMT -4. The time now is 00:19.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.