creating encrypted passwords in openfire MySQL via PHP

后端 未结 3 1038
小蘑菇
小蘑菇 2020-12-10 09:18

Openfire stores encrypted passwords in a database using blowfish encryption.

http://svn.igniterealtime.org/svn/repos/openfire/trunk/src/java/org/jivesoftware/util/

3条回答
  •  长情又很酷
    2020-12-10 09:45

    There is nothing wrong with your code, however to generate the same code as Openfire, you will need to add in two other items before the encrypted text.

    • length of ciphertext
    • CBCIV (initialization variable)

    Read "public String decryptString(String sCipherText)" in java code, it's all there. Also check the docs on how to use CBCIV in PHP.

提交回复
热议问题