Install OpenFire today but forgot the password after setting up, then view the data, found the solution
OpenFire password encryption is implemented by Org.jivesoftware.util.Blowfish, but requires encryption to obtain OpenFire Passwordkey, under the installed directory openfire\embedded-db\ Openfire.script Inside Search
INSERT into Ofproperty VALUES (' Passwordkey ', ' xxxxxxxxxxxx ')//passwordkeyand find it in the same file.
INSERT into Ofuser VALUES (' admin ', NULL, ' 63b8e73c0cbc612ec692196c6d8df0cf54da7c77f9c8752fc3bce938a4818a20 ', ' Administrator ', ' jwzhangjie@163.com ', ' 001379898892206 ', ' 0 ')//encryptedpasswordYou can then decrypt it with the following Java code:
Package openfire;
Import Org.jivesoftware.util.Blowfish;
public class OpenFire {
static Blowfish Blowfish = new Blowfish (' xxxxxx ');//passwordkey public
static void main (S Tring[] args) {
System.out.println (blowfish.decryptstring ("xxxxxxxxxxxxxxxxxxxx"));//Encryptedpassword
}
}
Dependent libraries: http://download.csdn.net/download/jwzhangjie/6305515