• 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
#2
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.
  Reply