I'm new to Symfony2 and I have maybe a simple question about encoding my user passwords in my DB. I'd like to encode and store in DB my users' password that way: encoded_password = salt . sha1 ( salt . raw_password ) I've found various encoders (sha1, sha512, plaintext), I saw that with plaintext I have in my DB raw_password{salt} but I'm still not comfortable with signin/login/getSalt() method in
![Symfony2 create own encoder for storing password](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)