• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] bcrypt
#3
(2021-01-30, 07:19 PM)Manyula Wrote: The whole point of a?hashing algorithm?is to take an input,?manipulate?the data and?output a?unique representation of the original input?(=hash) that cannot be reverted to its original input. If a user now inputs a password, you need to hash it and compare the hash of the user's input against the hash persisted in your database. If both hashes are equal the user has entered the correct password.



If you're looking into hashing passwords or any kind of sensitive data, you might also want to look into salting.





Hope this helps!



Yeah, I've been doing that but I'm getting this in the console

Quote:[SampBcrypt] [error]: LoginVerification => InvalidHash("")
  Reply


Messages In This Thread
bcrypt - by Behemoth - 2021-01-30, 05:43 PM
RE: bcrypt - by Manyula - 2021-01-30, 07:19 PM
RE: bcrypt - by Behemoth - 2021-01-30, 08:04 PM
RE: bcrypt - by Manyula - 2021-01-30, 10:53 PM
RE: bcrypt - by Awide - 2021-01-31, 05:25 PM
RE: bcrypt - by Behemoth - 2021-02-01, 08:30 PM
RE: bcrypt - by Jarnokai - 2021-02-02, 04:09 PM
RE: bcrypt - by Jarnokai - 2021-02-02, 04:11 PM
RE: bcrypt - by Behemoth - 2021-02-02, 11:41 PM
RE: bcrypt - by Jarnokai - 2021-02-03, 09:39 AM
RE: bcrypt - by ImOver - 2021-02-16, 07:13 PM

Forum Jump: