htpasswd creation in Livecode

Pierre Sahores sc at sahores-conseil.com
Thu Jan 17 00:47:49 EST 2013


function hexDigest pvalue 
   put "" into tRes
   put md5Digest(pValue) into tMD5 
   get binaryDecode("H*",tMD5,tRes) 
   return tRes 
end hexDigest

If i right remember, rev version credits goes to Mark Wieder

Le 17 janv. 2013 à 05:08, stephen barncard a écrit :

> I need to make my own MD5 password generator to use with htpasswd  password
> encryption. MD5Digests doesn't seem to cut it.
> php has a function called crypt(
> 
> $password = crypt($clearTextPassword, base64_encode($clearTextPassword));
> 
> seems like this should be simple in livecode. What's the encryption method?
> 
> I'm working with the awesome Livecode server.
> thanks for any help.
> 
> -- 
> 
> 
> 
> Stephen Barncard
> San Francisco Ca. USA
> 
> more about sqb  <http://www.google.com/profiles/sbarncar>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com





More information about the use-livecode mailing list