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
}
}