print question - character representation
Ajay
abra9823 at mail.usyd.edu.au
Fri Aug 27 02:41:06 EDT 2004
hi!
i am calculating a digest of some data (using hmac) and printing it to a
cookie. the problem is the hash may contain special characters. when these
are printed they get converted to \<number> representation.
later when i receive the cookie i recalculate the hmac and do a comparison
which returns false because of the conversion when writing to a cookie
q - how do i stop the conversion from happening? if i cant then how can i
convert the hmac i recalculate on receiving the cookie to the same
representation as the one printed
thanks
cheers
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the Python-list
mailing list