md5_base64() is not a built-in PHP function, and it does more than
just MD5. See the discussion around it on this page:
http://us2.php.net/manual/en/function.md5.php#47886You're missing a regular expression and some base64 encoding to make
the Lasso code match the PHP code. That and wrapping it into a custom
tag.
- jason
On Tue, Jul 7, 2009 at 4:09 PM, David
Bergkvist<
david.bergkvist@...> wrote:
> 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);
> }
>
> Lasso
> ------------------
> [var: 'key' = $eid+':'+$pno+':'+$secret]
> [var: 'invoice_digest' = (Encrypt_MD5: $key)]
>
> Perhaps it could even be: [var: 'invoice_digest' = (Encrypt_MD5:
> $eid+':'+$pno+':'+$secret)] ?
>
> /David
>
>
>
> --
> 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/>
>
>
--
tagSwap.net :: Open Source Lasso Code
<
http://tagSwap.net/>
--
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/