Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Releases Plugins [Plugin] samp-crypto - bcrypt, scrypt & argon2 hashing

 
  • 3 Vote(s) - 5 Average
Plugin samp-crypto - bcrypt, scrypt & argon2 hashing
Bork
Offline

Burgershot Member
Posts: 31
Threads: 4
Joined: Apr 2019
Reputation: 4
#8
2019-04-16, 10:04 AM
(2019-04-15, 11:12 PM)Y_Less Wrote: The old BCrypt plugin used a callback architecture.  You requested a hash, and once it was done the plugin informed you.  This was because cryptographic hashes are meant to be slow.  Their security lies in the fact that they take a long time to calculate, making brute-forcing them impossible within the age of the universe.  Performing the hash synchronously as in this version would stall the server for a non-trivial amount of time while running the calculation.  I like the presence of multiple different hashes, but this should really be threaded.

Threading has been suggested to me before, I just never got around to doing it. Argon2 already has threading (in the form of lanes? idk, you'll have to check out the rust-argon2 crate) so that's probably the best to use. I'll look into doing this, and if anyone decides they want to make a PR why not :)
Also I do know that it did use a callback architecture, and if anyone prefers that you've always got SyS' bcrypt plugin, and that's still being maintained as is this plugin. This is just meant to be a drop-in replacement for 'legacy' hashing methods (SHA256_PassHash, Whirlpool, MD5, etc).
« Next Oldest | Next Newest »



Messages In This Thread
samp-crypto - bcrypt, scrypt & argon2 hashing - by Bork - 2019-04-14, 11:40 PM
RE: samp-crypto - bcrypt, scrypt & argon2 hashing - by Kiru - 2019-04-14, 11:46 PM
RE: samp-crypto - bcrypt, scrypt & argon2 hashing - by javelin - 2019-04-14, 11:47 PM
RE: samp-crypto - bcrypt, scrypt & argon2 hashing - by Gravityfalls - 2019-04-15, 01:39 AM
RE: samp-crypto - bcrypt, scrypt & argon2 hashing - by dakyskye - 2019-04-15, 03:59 AM
RE: samp-crypto - bcrypt, scrypt & argon2 hashing - by Bork - 2019-04-15, 08:40 AM
RE: samp-crypto - bcrypt, scrypt & argon2 hashing - by Y_Less - 2019-04-15, 11:12 PM
RE: samp-crypto - bcrypt, scrypt & argon2 hashing - by Bork - 2019-04-16, 10:04 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode