OpenFire Admin Password View

Source: Internet
Author: User

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 ')//passwordkey
and find it in the same file.

INSERT into Ofuser VALUES (' admin ', NULL, ' 63b8e73c0cbc612ec692196c6d8df0cf54da7c77f9c8752fc3bce938a4818a20 ', ' Administrator ', ' jwzhangjie@163.com ', ' 001379898892206 ', ' 0 ')//encryptedpassword
You 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.