Skip to content

Instantly share code, notes, and snippets.

@tjarksaul
Created April 19, 2016 08:01
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 tjarksaul/0442a9a724ed80835e207dffbb9782aa to your computer and use it in GitHub Desktop.
Save tjarksaul/0442a9a724ed80835e207dffbb9782aa to your computer and use it in GitHub Desktop.
<?php
/**
* Encryptes a plain text password
* @param string Password
*/
function encryptPassword($password) {
global $config;
return md5($config->encryptionCode . $password . $config->encryptionCode);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment