encrypt Password Field

Hi All,

I’m new to Vaadin and i was wondering if there is how encrypt Password Field and save in mysql.

Thanks

The general rule is never store the password, encrypted or not. This can’t always be done, but it’s a best practice.

Consider using a library helper like jBCrypt http://www.mindrot.org/projects/jBCrypt/

In that model, you take their password and run it through the hashing code and save that in the DB. When checking, you take the entered password, run it through the hashing code and then compare with the stored hash.

Thanks for helping

As for encrypting things on the client side before sending it: DON’T, IT IS COMPLETELY USELESS. I can’t emphasize that enough. Use SSL instead (https).