Advertisement
erinx

php tripcode func

Sep 11th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. function trip($input) {
  2.   $input = explode("#", $input, 2)[1];
  3.   $input = mb_convert_encoding($input, 'Shift_JIS', 'UTF-8');
  4.   $salt = substr($input . 'H..', 1, 2);
  5.   $salt = preg_replace('/[^\.-z]/', '.', $salt);
  6.   $salt = strtr($salt, ':;<=>?@[\]^_`', 'ABCDEFGabcdef');
  7.   return '!' . substr(crypt($input, $salt), -10);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement