In my database I've a field for the user password (User.UserPassword), I'm using SHA1 algorithm to hash the user input and then I hash it with a salt. Ok, that's fine.
But now I'm authenticating CIFS users too. One protocol of CIFS is NTLMv1, which uses MD4 16 bits (very insecure) for my Samba Java Server.
I can't convert MD4 to SHA1 or compare those hash results. So, I need to save two hashs or compare them. So, I can:
- Save the MD4 hash into User.UserPasswordMD4. 
- Save the MD4 hash into some other table, like ExternalAuthenticators 
- Save the user full text password and convert it (Blargh) 
- Spring Security (I don't know how to do it, yet) 
- Your option goes here... 
Can anyone help me?
 
    