David Bergkvist wrote on 7/7/2009 3:09 PM:
> I need a quick check so I'm on the right track. Since I'm not used to
> PHP I tend to assume things as I read them. Have I missed anything in my
> conversion from PHP to Lasso below?
>
> PHP
> ------------------
> function invoice_digest($eid, $pno, $secret) {
> $string = $eid . ":" . $pno . ":" . $secret;
> return md5_base64($string);
> }
Best guess:
=========================================================
[
define_tag('invoice_digest',-required='eid',-required='pno',-required='secret');
return(encode_base64(encrypt_md5(#eid + ':' + #pno + ':' + #secret)));
/define_tag;
invoice_digest(123,456,'ssh!'); // example of usage
]
LP8: Y2QxZmZmZTI5ZWE4NWZjOWI2NjgxNzI5MjRmNWIzNGE=
=========================================================
- Bil
--
This list is a free service of LassoSoft:
http://www.LassoSoft.com/Search the list archives:
http://www.ListSearch.com/Lasso/Browse/Manage your subscription:
http://www.ListSearch.com/Lasso/