• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] HELP! How to get better recommend than `udb_hash()` and bcrypt system?
#1
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

}

}
  Reply


Messages In This Thread
HELP! How to get better recommend than `udb_hash()` and bcrypt system? - by PutuSuhartawan - 2021-05-19, 08:41 PM

Forum Jump: