Jump to content

API Password Encrypt/Decrypt problem


undeadcs

Recommended Posts

Hello.

I'v got a problem with encrypt/decrypt password API functions.

1. Get client data (password is encrypted in answer).

2. Send 'encrypt' action to API with password from form.

Getting answer:

["result"] => "success" ["password"] => "******"

 

And see that password from Client data !== Password from answer.

I manually enetered password for client in admin part of system and enter same password in data sent to API (action='encryptpassword')

 

When i try to decrypt password from Client data i am getting empty password.

 

What is problem?

 

sorry for broken english.

Link to comment
Share on other sites

But password hash depends on some random or time params.

Every time when i get client data, i get new hash of password.

So i cant compare 2 passwords even if i encrypt one.

Edited by undeadcs
Link to comment
Share on other sites

  • 1 month later...

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