Skip to content

Instantly share code, notes, and snippets.

@mamuz
Last active December 16, 2015 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamuz/5474851 to your computer and use it in GitHub Desktop.
Save mamuz/5474851 to your computer and use it in GitHub Desktop.
Secure token generator
<?php
$token = md5(
microtime() .
rand() .
serialize(shuffle($GLOBALS))
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment