Skip to content

Commit dd7a9a8

Browse files
committed
Added keycloak compatible hasher example.
1 parent 8a441ab commit dd7a9a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/mycompany/fusionauth/plugins/guice/MyExampleFusionAuthPluginModule.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,8 @@ protected void configure() {
5757
// Argon2id
5858
// https://github.com/P-H-C/phc-winner-argon2
5959
passwordEncryptorMapBinder.addBinding("example-argon2id").to(ExampleArgon2idPasswordEncryptor.class);
60+
61+
// PBDKF2HMACSHA256 with Keylength 512, useful for keycloak
62+
passwordEncryptorMapBinder.addBinding("example-keycloak").to(ExamplePBDKF2HMACSHA256Keylength512PasswordHasher.class);
6063
}
6164
}

0 commit comments

Comments
 (0)