Skip to content

Instantly share code, notes, and snippets.

@janpapenbrock
Created November 27, 2015 09:23
Show Gist options
  • Save janpapenbrock/82752aa00b5845c83e1a to your computer and use it in GitHub Desktop.
Save janpapenbrock/82752aa00b5845c83e1a to your computer and use it in GitHub Desktop.
Magento Create Admin User Password Hash
<?php
define('MAGENTO', realpath(dirname(__FILE__)));
require_once (MAGENTO . '/app/Mage.php');
Mage::app();
$password = 'super-secret';
$hash = Mage::helper('core')->getHash($password, Mage_Admin_Model_User::HASH_SALT_LENGTH);
echo $hash;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment