How to simulate openssl passwd?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Posts: 18
Joined: Thu Jul 24, 2014 8:55 pm

How to simulate openssl passwd?

Post by joseggarza » 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$ ----> md5
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.

Post Reply

Return to “Talking LiveCode”