How to simulate openssl passwd?
Posted: Sat Jan 16, 2016 8:41 pm
Hello nice people at LiveCode.
I need some help, I am in need to develop a module to authenticate users using a 3rd party MySql Database. It seems simple, but when I saw the Hash for the password, I had to do a little research and I found they are using this:
openssl passwd -1 -salt SALT PASSWORD.
-1 means MD5 with SALT... and the Password to hash...
in database I see something like:
$1$salt$qJH7.N4xYta3aEG/dfqo/0
$1$ ----> md5
then
the salt
then after the last $ comes the HASH(qJH7.N4xYta3aEG/dfqo/0).
well, My question is, knowing the SALT and that it uses MD5, HOW can I get the same STRING with livecode to compare against the DB HASH.
I tried MD5digest without any success.
basically all I need md5-crypt() from livecode, but I cant find it.
Thanks in advance for your support.
I need some help, I am in need to develop a module to authenticate users using a 3rd party MySql Database. It seems simple, but when I saw the Hash for the password, I had to do a little research and I found they are using this:
openssl passwd -1 -salt SALT PASSWORD.
-1 means MD5 with SALT... and the Password to hash...
in database I see something like:
$1$salt$qJH7.N4xYta3aEG/dfqo/0
$1$ ----> md5
then
the salt
then after the last $ comes the HASH(qJH7.N4xYta3aEG/dfqo/0).
well, My question is, knowing the SALT and that it uses MD5, HOW can I get the same STRING with livecode to compare against the DB HASH.
I tried MD5digest without any success.
basically all I need md5-crypt() from livecode, but I cant find it.
Thanks in advance for your support.