+ */
+@Service
+@Slf4j
+public class PasswordServiceImpl implements PasswordService {
+ /**
+ * A way to generate Password aafterBCrypt Standard
+ * This is computationally expensive
+ *
+ * @return a non-deterministic Salt for BCrypt.
+ */
+ @Override
+ public String hashPassword(String password) {
+ return BCrypt.hashpw(password, BCrypt.gensalt(12));
+ }
+
+ @Override
+ public boolean verifyPassword(String password, String hashedPassword) {
+ return BCrypt.checkpw(password, hashedPassword);
+ }
+}
\ No newline at end of file