php - OpenFire: SHA-1 passwords without blowfish encryption -
I want to be able to create users who have a straight SHA-1 password, a bluffish, not special, just plain The old vanilla SHA-1 was the only way I was able to accomplish this so far to override DefaultUserProvider and to override createUser, making the following changes:
if (! UsePlainPassword) { Try {encryptedPassword = StringUtils.hash (password.getBytes (), "SHA-1"); // Encrypted Password = AuthFactory.encryptPassword (password); // Set up the password so that it is included in that way. Password = null; } Capture (unsupported operation exception Uo) {// Password encryption may fail if in setup mode. // Therefore, use plain password}}
Is there a better way of doing this? idea? suggestion?
(The reason for this "requirement" is that I am trying to access the ofUser
table via mod_auth_mysql so that everyone can get "Single Sign On" solution Various areas of my project, such as subclass.)
My initial solution (provided in question) This functionality The only way to complete this is to talk to others on the open fire support forum And they agree.
Comments
Post a Comment