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.
How to simulate openssl passwd?
Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 44
- Joined: Thu Jul 24, 2014 8:55 pm
Jump to
- LiveCode Community
- ↳ Announcements
- ↳ Developer Services Marketplace
- ↳ User Groups and Events
- ↳ SoCal LiveCode Group
- ↳ Greater Toronto Area LiveCode Users Group
- ↳ Off-Topic
- ↳ Made With LiveCode
- Getting Started With LiveCode
- ↳ Getting Started with LiveCode - Complete Beginners
- ↳ Getting Started with LiveCode - Experienced Developers
- ↳ Converting to LiveCode
- Developing With LiveCode
- ↳ Talking LiveCode
- ↳ Databases
- ↳ Games
- ↳ Internet
- ↳ Multimedia
- ↳ Software Engineering
- ↳ Version Control
- ↳ Feature Proposals
- ↳ Bug Triage
- Extending LiveCode
- ↳ Using Plugins for Customizing the LiveCode IDE
- ↳ Using Externals
- ↳ Making IDE Plugins
- ↳ Building Externals
- ↳ LiveCode Builder
- Platform Specific
- ↳ Windows
- ↳ Mac OS
- ↳ Linux
- ↳ iOS Deployment
- ↳ Android Deployment
- ↳ CGIs and the Server
- ↳ HTML5
- ↳ Raspberry Pi
- Academic Endeavors
- ↳ Teaching with LiveCode
- ↳ Research and Post Secondary
- ↳ LiveCode University
- ↳ Educational Outreach
- Livecode Open Source Archived Forum- closed to posting
- ↳ Engine Contributors
- ↳ IDE Contributors
- ↳ Documentation and Tutorials
- ↳ Brainstorms
- ↳ Community Projects
- LiveCode Hosting