Skip to content

Instantly share code, notes, and snippets.

@WolfgangKurz
Last active March 7, 2023 17:33
Show Gist options
  • Select an option

  • Save WolfgangKurz/e6e2689d7257eb99adf95f334baa4a2b to your computer and use it in GitHub Desktop.

Select an option

Save WolfgangKurz/e6e2689d7257eb99adf95f334baa4a2b to your computer and use it in GitHub Desktop.
Youtube - Decrypt cipher signature
<?php
// 2017-02-28
function decrypt_signature($s){
$nF = function(&$a, $b){
$c = $a[0];
$a[0] = $a[$b % count($a)];
$a[$b] = $c;
};
$fj = function(&$a, $b){
array_splice($a, 0, $b);
};
$c0 = function(&$a){
$a = array_reverse($a);
};
$a = str_split($s);
$c0($a, 46);
$fj($a, 3);
$nF($a, 53);
$fj($a, 1);
$c0($a, 42);
$nF($a, 25);
$c0($a, 58);
return join('', $a);
}
@RianWap
Copy link

RianWap commented Oct 22, 2017

how to use this sir?? i need your help

@volkirik
Copy link

volkirik commented Jun 3, 2018

@groowyCZ
Copy link

Does it still works?

Copy link

ghost commented Oct 10, 2018

It's works ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment