Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: convert hexadecimal value to encrypted string

by melora (Scribe)
on Dec 11, 2004 at 21:56 UTC ( #414157=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://414157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2021-10-24 19:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?