[Nitro] two way crypt function

George Moschovitis george.moschovitis at gmail.com
Sun Nov 11 13:07:35 EST 2007


I have added all the debugging aids. This bug is random and I still cannot
understand why it happens.
the offending code is:

lib/raw/context/session/cookie.rb

-g.

On Nov 11, 2007 7:36 PM, Bill Kelly <billk at cts.com> wrote:

>
> From: George Moschovitis
> >
> > My problem is that sometimes, for some stupid reason, the digest
> > integrity check fails for non altered cookies.
> > Ie you get AlteredCookie exceptions for now reason.
> > I really can't find the problem.
>
> Would it be feasible to add some temporary debugging, to store
> the exact binary data of the original cookie alongside the
> digest?  So that, later, when the integrity check fails, you
> can compare the exact bytes of the old cookie against the new
> cookie?
>
> (Or if I've misunderstood the problem, I'm sorry.)
>
> But it seems like there are three possibilities:
>
>  - the cookie bytes really did change somehow
>  - the stored digest bytes got mutated somehow
>  - the digest code is broken and has randomness
>
> It seems like it should be possible (by storing the original
> cookie bytes for debug purposes) to have all the data needed
> to narrow down the possibilities?
>
>
> Regards,
>
> Bill
>
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>



-- 
http://me.gr
http://joy.gr
http://cull.gr
http://nitroproject.org
http://phidz.com
http://joyerz.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20071111/fc742d42/attachment.html 


More information about the Nitro-general mailing list