Welcome! Log In Create A New Profile

Advanced

nginx uid decoding using Base64.decode64

dhaval d.
September 09, 2011 01:36PM
Hi,
I was facing a problem while decoding a nginx generated uid using
ruby.

The uid which I get from nginx cookie is "CqCx7E5qMNUxrmAUAwMJAg==" and
when I try to decode this using
Base64.decode64("CqCx7E5qMNUxrmAUAwMJAg==") , it gives me
"\n\xA0\xB1\xECNj0\xD51\xAE`\x14\x03\x03\t\x02" instead of
"ECB1A00AD5306A4E1460AE3102090303" which I see in my access
logs($uid_got value).

can any one give some suggestions on this issue?

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx uid decoding using Base64.decode64

dhaval d. September 09, 2011 01:36PM

Re: nginx uid decoding using Base64.decode64

Maxim Dounin September 09, 2011 02:12PM

Re: nginx uid decoding using Base64.decode64

dhaval d. September 09, 2011 04:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 178
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready