Guest User

Untitled

a guest
Sep 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <?php
  2. if(isset($_REQUEST['a']) && isset($_REQUEST['t'])) {
  3. switch($_REQUEST['a']) {
  4. case 'md5':
  5. case 'sha1':
  6. case 'sha256':
  7. case 'sha512':
  8. header(HTTP/1.1 200 OK');
  9. header('Content-Type: text/plain');
  10. print hash($_REQUEST['a'], (string)$_REQUEST['t']);
  11. exit();
  12. }
  13. header('HTTP/1.1 500 Internal Server Error');
Add Comment
Please, Sign In to add comment