Hello Maxim, Thanks a lot for your reply. Because of which I was able to figure out the way to decode it. Here is the snippet for those who wants to know. cookie = "CqCx7E5qMNUxrmAUAwMJAg==" Base64.decode64(cookie).unpack("L*").collect{|num| num.to_s(16)}.join("").upcase -- Posted via http://www.ruby-forum.com/.