Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $app->get('/hashpwd', function() use ($app) {
- $rawPassword = 'secret';
- $salt = '%qUgq3NAYfC1MKwrW?yevbE';
- $encoder = $app['security.encoder.bcrypt'];
- return $encoder->encodePassword($rawPassword, $salt);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement