Skip to content

Instantly share code, notes, and snippets.

@shadz3rg
Forked from jreinke/generate.php
Created February 28, 2013 12:24
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 shadz3rg/5056386 to your computer and use it in GitHub Desktop.
Save shadz3rg/5056386 to your computer and use it in GitHub Desktop.
<?php
use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder;
$encoder = new MessageDigestPasswordEncoder();
echo $encoder->encodePassword('foo', '');
// 5FZ2Z8QIkA7UTZ4BYkoC+GsReLf569mSKDsfods6LYQ8t+a8EW9oaircfMpmaLbPBh4FOBiiFyLfuZmTSUwzZg==
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment