in reply to Perl function equivalent to PHP xormask
sub XORmask { '30d1c6615af8cfc9' }
How did I get the magical value? By XORing the expected output with the $track. That's how XOR works.
#!/usr/bin/perl use warnings; use strict; use MIME::Base64; use constant XORmask => '30d1c6615af8cfc9'; my $id = 'Z0xcAVtKAwkDHVcKVF5TCQ'; my $track_decode = decode_base64($id); print $track_decode ^ XORmask, "\n";
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl function equivalent to PHP xormask
by wubbaducki (Initiate) on Mar 20, 2016 at 17:53 UTC | |
by poj (Abbot) on Mar 20, 2016 at 18:13 UTC | |
by Anonymous Monk on Mar 20, 2016 at 18:13 UTC | |
by wubbaducki (Initiate) on Mar 20, 2016 at 20:30 UTC |