Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] HELP! How to get better recommend than `udb_hash()` and bcrypt system?

 
  • 0 Vote(s) - 0 Average
Pawn HELP! How to get better recommend than `udb_hash()` and bcrypt system?
PutuSuhartawan
Offline

Burgershot Member
Posts: 120
Threads: 52
Joined: Nov 2020
Reputation: 1
Location: Indonesia
#1
2021-05-19, 08:41 PM (This post was last modified: 2021-05-19, 08:44 PM by PutuSuhartawan.)
People need to secure the password from the communist.
Code:
Example

main(){
bcrypt_hash(0,"OnPassswordHash","text",12);
}

forward OnPassswordHash(playerid);
public OnPassswordHash(playerid){
new dest[60];
bcrypt_get_hash(dest);
bcrypt_verify(playerid,"OnPassswordVerify","text",dest);
}

forward OnPassswordVerify(playerid,bool:success);
public OnPassswordVerify(playerid,bool:success){
//success denotes verifying was successful or not
if(success){
//verfied
} else{
//hash doesn't match with text
}
}
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#2
2021-05-19, 11:42 PM
BCrypt is fine. Not how you're using it, but done correctly it is. udb_hash is just not a password system. I'm not even going to explain why - NEVER EVER use it.
« Next Oldest | Next Newest »



  • 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