Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function homo($str) {
- $crypt = array( "A" => base64_decode("zpE="), "a" => base64_decode("0LA="), "B" => base64_decode("zpI="), "b" => "b", "C" => base64_decode("z7k="), "c" => base64_decode("z7I="), "D" => "D", "d" => base64_decode("1IE="), "E" => base64_decode("zpU="), "e" => base64_decode("0LU="), "F" => "F", "f" => "f", "G" => base64_decode("1Iw="), "g" => "g", "H" => base64_decode("zpc="), "h" => "h", "I" => base64_decode("zpk="), "i" => base64_decode("0ZY="), "J" => base64_decode("0Ig="), "j" => base64_decode("0Zg="), "K" => base64_decode("zpo="), "k" => "k", "L" => "L", "l" => "l", "M" => base64_decode("zpw="), "m" => "m", "N" => base64_decode("zp0="), "n" => "n", "O" => base64_decode("zp8="), "o" => base64_decode("0L4="), "P" => base64_decode("zqE="), "p" => base64_decode("0YA="), "Q" => base64_decode("1Jo="), "q" => base64_decode("1Js="), "R" => base64_decode("Ug=="), "r" => "r", "S" => base64_decode("0IU="), "s" => base64_decode("0ZU="), "T" => base64_decode("zqQ="), "t" => "t", "U" => "U", "u" => "u", "V" => "V", "v" => "v", "W" => base64_decode("Vw=="), "w" => base64_decode("0aE="), "X" => base64_decode("zqc="), "x" => base64_decode("0YU="), "Y" => base64_decode("0q4="), "y" => base64_decode("0YM="), "Z" => base64_decode("zpY="), "z" => base64_decode("eg=="), "0" => "0", "1" => "1", "2" => "2", "3" => "3", "4" => "4", "5" => "5", "6" => "6", "7" => "7", "8" => "8", "9" => "9", "&" => "&", " " => " ", "_" => "_", "-" => "-", "@" => "@", "." => ".", "?" => "?", "/" => "/", "'" => "'", "\"" => "\"", "," => ",");
- $encode = "";
- for ($i=0; $i < strlen($str); $i++) {
- $key = substr($str, $i, 1);
- if (array_key_exists($key, $crypt)) {
- $encode = $encode.$crypt[$key];
- } else {
- $encode = $encode.$key;
- }
- }
- return $encode;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement