Jump to content

Password hashing


andreuka

Recommended Posts

Hi!

 

I trying to integrate IPB 4 Forum to login with whmcs account credentials using External Database method.

How can I reproduce password hash?

 

I tried:

 

password_hash('password', PASSWORD_BCRYPT, array(
   'salt' => 'securityqansColumn'
))

 

But it gives me another string always :(

 

Any suggestions?

 

Thanks!

 

- - - Updated - - -

 

Figured it out!

To verify password need to use another function!

 

password_verify('password', 'hashed string')

 

Maybe it will be usefull for some one !:)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated