• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] bcrypt
#6
Code:
            mysql_format(dbConnection, query, sizeof(query), "SELECT acc_pass FROM accounts WHERE acc_user = '%e'", ReturnName(playerid));

            mysql_tquery(dbConnection, query);



            cache_get_value_name(0, "acc_pass", password, 256);



            bcrypt_hash(0, "LoginVerification", password, 12);



Code:
forward LoginVerification(playerid);

public LoginVerification(playerid) {

    new

        hash[256], check[256];



    bcrypt_get_hash(hash);



    bcrypt_verify(playerid, "HashCheck", hash, check);

    return 1;

}



forward HashCheck(playerid, bool:success);

public HashCheck(playerid, bool:success) {

    if(success) {

        return SendClientMessage(playerid, COLOR_LIGHTRED, "IT WORKS CUNT");

    }

    return 1;



I have a feeling this is entirely wrong but I was just guessing at this point, was hoping for a guide on how to properly use this. nohate lol
  Reply


Messages In This Thread
bcrypt - by Behemoth - 2021-01-30, 05:43 PM
RE: bcrypt - by Manyula - 2021-01-30, 07:19 PM
RE: bcrypt - by Behemoth - 2021-01-30, 08:04 PM
RE: bcrypt - by Manyula - 2021-01-30, 10:53 PM
RE: bcrypt - by Awide - 2021-01-31, 05:25 PM
RE: bcrypt - by Behemoth - 2021-02-01, 08:30 PM
RE: bcrypt - by Jarnokai - 2021-02-02, 04:09 PM
RE: bcrypt - by Jarnokai - 2021-02-02, 04:11 PM
RE: bcrypt - by Behemoth - 2021-02-02, 11:41 PM
RE: bcrypt - by Jarnokai - 2021-02-03, 09:39 AM
RE: bcrypt - by ImOver - 2021-02-16, 07:13 PM

Forum Jump: