aah Password Encoders
Out-of-the-box aah supports three password encoders for authenticating users in your application. A good read about password hashing security.
Table of Contents
Password encoders implements the interface acrypto.PasswordEncoder
.
bcrypt Algorithm
bcrypt
password hashing algorithm, good read here, here. Configure bcrypt encoder in security.conf
at section password_encoder { ... }
.
To hash your password
Configuration
scrypt Algorithm
scrypt
password hashing algorithm, good read here, here. Configure scrypt encoder in security.conf
at section password_encoder { ... }
.
To hash your password
Configuration
pbkdf2 Algorithm
pbkdf2
password hashing algorithm, good read here, here, here. Configure pbkdf2 encoder in security.conf
at section password_encoder { ... }
.
Note:
It's commonly recommended to use `bcrypt` password hashing algorithm. However real world usage is different per application. If you're using `pbkdf2` hashing algorithm, it's highly advised to use pbkdf2 with SHA-512 or SHA-256. Good read here, here.
To hash your password
Configuration
Adding additional password encoder into aah
aah provides extensibility to add additional password encoder into aah easily. Implement the interface acrypto.PasswordEncoder
then add it to aah
.