Hashed password generation with Silex
$app->get('/hashpwd', function() use ($app) { | |
$rawPassword = 'secret'; | |
$salt = '%qUgq3NAYfC1MKwrW?yevbE'; | |
$encoder = $app['security.encoder.bcrypt']; | |
return $encoder->encodePassword($rawPassword, $salt); | |
}); |
This comment has been minimized.
This comment has been minimized.
@sangimed Fixed, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
it's rather $rawPassword than $raw in the first argument of $encoder->encodePassword()