http://qs1969.pair.com?node_id=414157


in reply to convert hexadecimal value to encrypted string

Here's a hex-to-ASCII thing that I use
$text =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
That would give you the original encrypted string in ASCII form from the encrypted string in hex form. I'm assuming that each ASCII char is stored as two (ASCII) characters of hex.
I don't know if that does what you need... I hope it helps.