i am using spring security for login authorization. in my security-config.xml i am using the following code:
<authentication-manager> <authentication-provider> <password-encoder hash="md5"/> <jdbc-user-service data-source-ref="dataSource" users-by- username-query="SELECT username, password,1 as enabled FROM users WHERE username=?" authorities-by- username-query="SELECT username, authority,1 as enabled FROM users WHERE username =?" /> </authentication-provider> </authentication-manager> but in my database i already have an encrypted password using a customized function that is not a pure md5 hash. my question is can i call this function from my security-config.xml instead of
<password-encoder hash="md5"/> or if there another way?
thank you in advance.
PBKDF2(recommended by NIST),Rfc2898DeriveBytes,password_hash,Bcrypt,passlib.hashor similar functions. The point is to make the attacker spend a lot of time finding passwords by brute force.