A FiveM resource for hashing and verifying passwords using bcrypt in a separate worker thread.
- Download the latest release from the releases page
- Add
start loaf_bcryptto your server.cfg - Add
add_unsafe_worker_permission loaf_bcryptto your server.cfg
exports.loaf_bcrypt:GetPasswordHash(password: string): stringexports.loaf_bcrypt:VerifyPasswordHash(password: string, hash: string): boolean
Add server_script "@loaf_bcrypt/import.lua" to your fxmanifest.lua