Skip to content

Instantly share code, notes, and snippets.

@happygrizzly
Forked from jreinke/generate.php
Created September 27, 2016 12:32
Show Gist options
  • Save happygrizzly/b3524a4dbcc33a740f22bd136210c242 to your computer and use it in GitHub Desktop.
Save happygrizzly/b3524a4dbcc33a740f22bd136210c242 to your computer and use it in GitHub Desktop.
Default password encoding in Silex micro-framework
<?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