Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: port a function from php

by Crackers2 (Parson)
on Dec 10, 2013 at 20:01 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-19 02:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found