Skip to content

Instantly share code, notes, and snippets.

@javiermadueno
Forked from jreinke/generate.php
Created September 5, 2016 07:06
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 javiermadueno/4e894e51a005c0862960d5518975ebab to your computer and use it in GitHub Desktop.
Save javiermadueno/4e894e51a005c0862960d5518975ebab 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