Spring security add password encoder.
Registration