Skip to content

Instantly share code, notes, and snippets.

@AdamMadrzejewski
Last active September 26, 2016 06:18
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 AdamMadrzejewski/5ce3ac3afa1114a71b92 to your computer and use it in GitHub Desktop.
Save AdamMadrzejewski/5ce3ac3afa1114a71b92 to your computer and use it in GitHub Desktop.
Hashing password with Joomla 3
<?php
define('_JEXEC', 1);
define('JPATH_BASE', dirname(__FILE__));
require_once(JPATH_BASE . '/includes/defines.php');
require_once(JPATH_BASE . '/includes/framework.php');
echo "<strong>Password: </strong>" . JUserHelper::hashPassword('adam');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment