search for: secure_blob_hasher

Displaying 2 results from an estimated 2 matches for "secure_blob_hasher".

2008 May 17
4
Setting cookies in service overloader thingo
...on 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 = {} > end > > app = self.class.name.gsub(/^(\w+)::.+$/, ''\1'') > @state = (data[app] ||= Camping::H[]) > hash_before = blob.hash > return...
2008 May 24
19
Camping 2.0 - What''s left?
I''ve just sent a pull-request to _why with my changes[1] and here is some things that I think needs to be done before a (possible) release: * The cookie session is named Camping::Session and is placed in camping/session.rb. Maybe this should be called Camping::CookieSession or??? * The ActiveRecord session is named Camping::ARSession and is placed in camping/ar/session.rb. Maybe it