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