Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to do login with hashedpassword and salt password in php #3316

Closed
gauranggaurang opened this issue Jul 4, 2017 · 6 comments
Closed

How to do login with hashedpassword and salt password in php #3316

gauranggaurang opened this issue Jul 4, 2017 · 6 comments

Comments

@gauranggaurang
Copy link

Hi , i want to create my own REST API with PHP and i am stuck at 1st step of login .

I have refer your forums - https://www.traccar.org/forums/topic/login-php-hash-and-salt/

But it wont work !!! how can i compare the hasedpassword with original text password ?

@tananaev
Copy link
Member

tananaev commented Jul 4, 2017

You don't compare text password. You hash it first and then compare hashes.

@gauranggaurang
Copy link
Author

Ok and how to hash password in php ? which method you have used for "hashedpassword" in user table ?

@tananaev
Copy link
Member

tananaev commented Jul 5, 2017

I would recommend to search on forum and other github threads. I remember that this has been discussed before.

@gauranggaurang
Copy link
Author

Ok. i have check it but not able to find any solution !!
which technology you have used for hashing password ?

@tananaev
Copy link
Member

tananaev commented Jul 5, 2017

Traccar uses PBKDF2-HMAC-SHA1 algorithm. For more details check Hashing.java class.

@gauranggaurang
Copy link
Author

Ok . Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants