Displaying 1 result from an estimated 1 matches for "secure_hash".
2008 May 17
4
Setting cookies in service overloader thingo
...ral this way.
Trouble is, I''m trying to make it work as a drop in replacement for
the camping sessions mixin so people can ''upgrade'' in either direction
easily, consider this code however...
> def service(*a)
> if @cookies.identity
> blob, secure_hash = @cookies.identity.to_s.split('':'')
> blob = Base64.decode64(blob)
> data = Marshal.restore(blob)
> data = {} unless secure_blob_hasher(blob) == secure_hash
> else
> blob = ''''
> data = {}
>...