Moparscape - RSPS Community

General Interests & Hobbies => General Programming => Topic started by: 317guy on April 24, 2018, 07:09:40 AM

Title: Help? Cross Platform password hashing Swift - Java - PHP
Post by: 317guy on April 24, 2018, 07:09:40 AM
Title pretty much says it all i made my Web API for a company and they liked my work and have now asked me to port it to Android and IOS. My problem is in PHP i am using password_hash() and password_verify() to log my users in I have no clue how to implement a method like that for Swift and Java. Can any point me a a cross-platform library or just give me a basic guide line or point me to any website for help. I really didn't expect this company to go this far and think i have made a mistake just using the PHP , password_hash() function.
Title: Re: Help? Cross Platform password hashing Swift - Java - PHP
Post by: RevengePK on May 09, 2018, 01:56:46 AM
Password_hash() in PHP by default uses the hashing algorithm bCrypt. Just reference the stored password with a function is java that will hash the plain text password in bCrypt and reference them.