[Plugin] samp-crypto - bcrypt, scrypt & argon2 hashing - Printable Version +- Burgershot (https://www.burgershot.gg) +-- Forum: SA-MP (https://www.burgershot.gg/forumdisplay.php?fid=3) +--- Forum: Releases (https://www.burgershot.gg/forumdisplay.php?fid=13) +---- Forum: Plugins (https://www.burgershot.gg/forumdisplay.php?fid=32) +---- Thread: [Plugin] samp-crypto - bcrypt, scrypt & argon2 hashing (/showthread.php?tid=219) |
samp-crypto - bcrypt, scrypt & argon2 hashing - Bork - 2019-04-14 samp crypto A SAMP cryptography plugin written in Rust. This plugin was written as a means to make it really simple for anyone to transition from Whirlpool, SHA256_PassHash or any other hashing method similar to these without major script changes, like the other bcrypt plugins do. This is my first plugin written in Rust, I tried cleaning up all my code and I will continue to do so however you may still see some older code. If you wish to clean it up please fork the repo, make changes and create a PR! I will happily review and accept it. Encryption Methods
Click me to go to the wiki! Downloads Binaries Source Code Credits The credits can be found here, in the GitHub README.md Notes I was debating whether or not I should release this for a while. After what has been going on in SAMP, with essentially the community being divided between the players in the Discord and the SAMP forum, I wasn't sure who to support. A lot of the people from this community have been quite spiteful towards me, however, I'm putting that in the past and I suppose my support is with you lot. samp crypto will be a burgershot.gg exclusive. Special thanks to iAmir & Dakyskye from the bottom of my heart. For anyone who didn't believe in me, fuck you I suppose. :joy: Maybe this'll prove I'm worth something. And I'd like to apologize for never delivering on that Postgres plugin, but do know that I still have it in mind and I'll make it happen whenever I have the experience to do so. RE: samp-crypto - bcrypt, scrypt & argon2 hashing - Kiru - 2019-04-14 I would like to say.... Great plugin! I am planning to use this in my rp project. Great job <3 RE: samp-crypto - bcrypt, scrypt & argon2 hashing - javelin - 2019-04-14 Been waiting for the release since day 1. Very useful, thank you. RE: samp-crypto - bcrypt, scrypt & argon2 hashing - Gravityfalls - 2019-04-15 Amazing one. Good job. RE: samp-crypto - bcrypt, scrypt & argon2 hashing - dakyskye - 2019-04-15 Great plugin, I'm gonna definetely use it. RE: samp-crypto - bcrypt, scrypt & argon2 hashing - Bork - 2019-04-15 Thank you all :) RE: samp-crypto - bcrypt, scrypt & argon2 hashing - Y_Less - 2019-04-15 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. RE: samp-crypto - bcrypt, scrypt & argon2 hashing - Bork - 2019-04-16 (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). |