powered by Jive Software

Where is the blowfish password encryption key?

I am trying to create an account creation using the registration plugin it works fine, but i need one with some additional insertions to the “ofUsers” table of “Openfire” database.

I need to encrypt the password, and found that the application uses blowfish algorithm to generate encrypted passord.

can anybody please tell me where can I find the key for the blowfish encryption?

It wuld be greateful fo you guys…, I have been in this for long.

Thanks in advance


I have to do this in PHP


It is in the database.

select propvalue from ofProperty where name = 'passwordKey';

I don’t know how to work with it in PHP though.


Thanks Daryl…,

I got it… Is there any initialization vector used to for the the blowfish algorithm?


I believe the source code is here:

http://www.igniterealtime.org/fisheye/browse/~raw,r=8062/svn-org/openfire/trunk/ src/java/org/jivesoftware/util/Blowfish.java


Im not good at java… can some one sxplaint the process…

Sorry for asking such a question… but I am ni need of this…

Ok, Thanks to all for there suggestions.

I came arround with a different solution.

A plugin named “user service” is present with the openfire so I can add/edit/delete user bu submitting through CURL or by fopen.

A class file from the phpclasses.org helped to make life simple this is a wrapper around the open fire to achive the functionality:


Once again thanks to all.