A
Ajay
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
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