in reply to Cookies & Encryption

If you've got encrypted text and your only problem is that it's not plain ASCII, then just use unpack 'H*', $crypted to convert it to hex and pack 'H*', $cookie to bring it back.

    -- Chip Salzenberg, Free-Floating Agent of Chaos