Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Base64 Decode issues

by zentara (Archbishop)
on Dec 21, 2008 at 22:25 UTC ( [id://731931]=note: print w/replies, xml ) Need Help??


in reply to Base64 Decode issues

If you have random non-base64 chars in the string, maybe it isn't base64encoded? Or else it is a clever attempt at encryption by obfuscation? Anyways, this will do it.
#!/usr/bin/perl use warnings; use strict; my $str = 'Ton&#x69'; print "$str\n"; $str =~ tr#A-Za-z0-9+/##cd; # remove non-base64 chars print "$str\n"; exit;

I'm not really a human, but I play one on earth Remember How Lucky You Are

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-25 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found