Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class InputSource
- def initialize(cookies)
- @key = nil
- @identifier = nil
- hashob = Digest::SHA1.new();
- @key = hashob.update(Time.now.to_s + rand(10000).to_s + SALT).to_s
- hashob = Digest::SHA1.new();
- @identifier = hashob.update(Time.now.to_s + rand(10000).to_s + SALT).to_s
- @key = cookies[:_iaql] unless cookies[:_iaql].nil?
- @identifier = cookies[:_owsk] unless cookies[:_owsk].nil?
- end
- def getKey
- @key
- end
- def getIdentifier
- @identifier
- end
- end
Add Comment
Please, Sign In to add comment