Skip to content

Instantly share code, notes, and snippets.

@JABirchall
Last active December 19, 2015 14:09
Show Gist options
  • Save JABirchall/5967551 to your computer and use it in GitHub Desktop.
Save JABirchall/5967551 to your computer and use it in GitHub Desktop.
<?php
if ($_GET['action'] == 'decode'){
echo hex2bin($_GET['loginid']);
} else if ($_GET['action'] == 'encode') {
echo bin2hex($_GET['loginid']);
} else {
echo 'Please choose decode or encode';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment