Package com.example.blogs.app.config
Class PasswordConfig
java.lang.Object
com.example.blogs.app.config.PasswordConfig
Provides BCrypt password encoding for secure password hashing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.crypto.password.PasswordEncoderCreates a BCrypt password encoder bean for password hashing.
-
Constructor Details
-
PasswordConfig
public PasswordConfig()
-
-
Method Details
-
passwordEncoder
Creates a BCrypt password encoder bean for password hashing.- Returns:
- BCrypt password encoder with default strength (10 rounds)
-