I need random salt to hash password with users in file security.yml, not database. What i need to declare in "encoder" section to use salt in password hashing?
I think you shoud implement your own encoder logic by providing a service
services: custom_encoder: class: Acme\TestBundle\Service\CustomEncoder
It must implement Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface
After that add this class to security.yml
security: encoders: Acme\TestBundle\Entity\User: id: custom_encoder
Are you generating a single random salt that's stored in security.yml and you want to use that against all passwords in your system - Asa Ayers 2012-04-04 06:13