Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

port a function from php

by reqnode (Novice)
on Dec 10, 2013 at 15:32 UTC ( [id://1066447]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    function md5_decrypt($enc_text, $password, $iv_len = 16)
    {
        $enc_text = base64_decode($enc_text);
    ...
        }
        return preg_replace('/\\x13\\x00*$/', '', $plain_text);
    }
    
  2. or download this
    use MIME::Base64;
    use Digest::MD5 qw(md5 md5_hex md5_base64);
    ...
        #$plain_text =~ s/\x13\x00*$//;
        return $plain_text;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found