11/* 
2-  * Copyright (c) 2020, FusionAuth, All Rights Reserved 
2+  * Copyright (c) 2020-2022 , FusionAuth, All Rights Reserved 
33 * 
44 * Licensed under the Apache License, Version 2.0 (the "License"); 
55 * you may not use this file except in compliance with the License. 
1717
1818import  com .google .inject .AbstractModule ;
1919import  com .google .inject .multibindings .MapBinder ;
20- import  com .mycompany .fusionauth .plugins .ExampleArgon2idPasswordEncryptor ;
2120import  com .mycompany .fusionauth .plugins .ExampleCustomMD5SaltedPasswordEncryptor ;
2221import  com .mycompany .fusionauth .plugins .ExamplePBDKF2HMACSHA1PasswordEncryptor ;
23- import  com .mycompany .fusionauth .plugins .ExamplePBDKF2HMACSHA256Keylength512PasswordHasher ;
22+ import  com .mycompany .fusionauth .plugins .ExamplePBDKF2HMACSHA256KeyLength512PasswordHasher ;
2423import  com .mycompany .fusionauth .plugins .ExamplePHPMD5SaltedPasswordEncryptor ;
2524import  com .mycompany .fusionauth .plugins .ExampleRfc2898DeriveBytesPasswordEncryptor ;
2625import  com .mycompany .fusionauth .plugins .ExampleSaltedSHA512PasswordEncryptor ;
@@ -45,7 +44,9 @@ protected void configure() {
4544 // Start with this example and implement it. 
4645 passwordEncryptorMapBinder .addBinding ("example-hash" ).to (MyExamplePasswordEncryptor .class );
4746
48-  // Functional examples 
47+  // 
48+  // Below are Functional examples 
49+  // 
4950 passwordEncryptorMapBinder .addBinding ("example-custom-md5" ).to (ExampleCustomMD5SaltedPasswordEncryptor .class );
5051 passwordEncryptorMapBinder .addBinding ("example-salted-sha512" ).to (ExampleSaltedSHA512PasswordEncryptor .class );
5152
@@ -61,9 +62,12 @@ protected void configure() {
6162
6263 // Argon2id 
6364 // https://github.com/P-H-C/phc-winner-argon2 
64-  passwordEncryptorMapBinder .addBinding ("example-argon2id" ).to (ExampleArgon2idPasswordEncryptor .class );
65+  //  passwordEncryptorMapBinder.addBinding("example-argon2id").to(ExampleArgon2idPasswordEncryptor.class);
6566
6667 // PBDKF2HMACSHA256 with Keylength 512, useful for keycloak 
67-  passwordEncryptorMapBinder .addBinding ("example-keycloak" ).to (ExamplePBDKF2HMACSHA256Keylength512PasswordHasher .class );
68+  passwordEncryptorMapBinder .addBinding ("example-keycloak" ).to (ExamplePBDKF2HMACSHA256KeyLength512PasswordHasher .class );
69+ 
70+  // Example PBKDF2 with a SHA-1 
71+  passwordEncryptorMapBinder .addBinding ("example-salted-pbkdf2-hmac-sha1-10000" ).to (ExamplePBDKF2HMACSHA1PasswordEncryptor .class );
6872 }
6973}
0 commit comments