title: Best way to handle the time taken by BCryptPasswordEncoder
body: <p>So I'm working on a web application which involves saving user credentials in the database. To encrypt password I'm using BCryptPasswordEncoder from spring security. The encoder understandably takes long time to encrypt the password (similarly during password match also). My question is what's the best way to handle this time taking process..for e.g. should I do the encryption asynchronously and return to user immediately or return the next only after password encryption is complete?</p>
  
  <p>Any suggestion is appreciated.</p>