
Hash Passwords Java Guide to Argon2 bcrypt and PBKDF2
Hash passwords in Java with Argon2id, bcrypt or PBKDF2 using Spring Security's PasswordEncoder, salts, work factors, upgrades and what never to use.
Tag
223 posts

Hash passwords in Java with Argon2id, bcrypt or PBKDF2 using Spring Security's PasswordEncoder, salts, work factors, upgrades and what never to use.

A Mockito tutorial: create mocks, stub return values and exceptions, verify calls and arguments, and know where mocks help a test and where they hurt.

Structure a Spring Boot app into modules, verify the boundaries in a test, communicate through events and test one module at a time with Spring Modulith.

Build a Quarkus native executable with Mandrel or GraalVM: the native profile, build commands, what you gain and lose, build time and memory, and testing it.

Use JPA safely from JSF: where to put transactions, injecting EntityManager into CDI services, avoiding lazy loading errors and handling optimistic locking.

Use JUnit Nested classes to group tests by state or behaviour, share setup with scoped BeforeEach, and keep large test classes readable.

Debug Spring bean wiring: read the failure analysis, list beans with Actuator, use the conditions report and turn on bean creation logging.