Top-posting to my own post from yesterday. I found the solution:
Here are the lines that matter:
Ruby
> Digest::SHA1.hexdigest("#{LoginEngine.config(:salt)}--#{str}--}")[0..39]
PHP
> return substr( sha1(LOGIN_ENGINE_CONF_SALT."--$mystr--}"), 0, 39);
and here's the fix, in PHP:
return substr( sha1(LOGIN_ENGINE_CONF_SALT."--$mystr--}"), 1, 40);
Comp Sci 203. Binary representation of indices. Some index systems are
0-based and some are 1-based. Ruby's built in [ .. ] command has a 0-based
index.
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org