nginx uid decoding using Base64.decode64

dhaval d. lists at ruby-forum.com
Fri Sep 9 20:33:58 UTC 2011


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/.



More information about the nginx mailing list