Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: port a function from php

by Crackers2 (Parson)
on Dec 10, 2013 at 20:01 UTC ( #1066497=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub php_xor {
      my ($p1,$p2) = @_;
      my $len = length($p1) < length($p2) ? length($p1) : length($p2);
      return substr($p1,0,$len) ^ substr($p2,0,$len);
    }
    
  2. or download this
    use MIME::Base64;
    use Digest::MD5 qw(md5 md5_hex md5_base64);
    ...
    }
    
    print md5_decrypt('2EC0KFZ1aGghEdySB+5Y9nbAfMrk9ky/89vwlA4HyTU=', '34g
    +iu34hgiu34hg') . "\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2021-12-05 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (31 votes). Check out past polls.

    Notices?