A

Arogya • 3.19K Points
Extraordinary

Q. Which method is used to encode passwords using BCrypt?

Code:
PasswordEncoder encoder = new BCryptPasswordEncoder();
String hash = encoder.encode("mypassword");
  • (A) encode()
  • (B) hash()
  • (C) encrypt()
  • (D) protect()

Explanation by: Arogya
The encode() method hashes the raw password using BCrypt.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.