Skip to content

Instantly share code, notes, and snippets.

@tjarksaul
Created September 20, 2013 12:30
Show Gist options
  • Save tjarksaul/6636748 to your computer and use it in GitHub Desktop.
Save tjarksaul/6636748 to your computer and use it in GitHub Desktop.
<?php
$geheimnis = 'ULTRAGEHEIM'
$zufall = trim($_GET['random'])
$token = trim($_GET['token'])
$sha = hash('sha512', $geheimnis . $zufall);
if ($sha == $token)
{
// auth success
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment