Advertisement
d3g1d5

Homoglyph Text Generator

Feb 23rd, 2020
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. <?php
  2. function homo($str) {
  3. $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", "&" => "&", " " => " ", "_" => "_", "-" => "-", "@" => "@", "." => ".", "?" => "?", "/" => "/", "'" => "'", "\"" => "\"", "," => ",");
  4. $encode = "";
  5. for ($i=0; $i < strlen($str); $i++) {
  6. $key = substr($str, $i, 1);
  7. if (array_key_exists($key, $crypt)) {
  8. $encode = $encode.$crypt[$key];
  9. } else {
  10. $encode = $encode.$key;
  11. }
  12. }
  13. return $encode;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement