11# SampBcrypt
2- [ ![ Build Status] ( https://travis-ci.org/Sreyas-Sreelal/samp-bcrypt.svg?branch=master )] ( https://travis-ci.org/Sreyas-Sreelal/samp-bcrypt )
3- [ ![ Build status] ( https://ci.appveyor.com/api/projects/status/5rq55kukvy8xymly?svg=true )] ( https://ci.appveyor.com/project/Sreyas-Sreelal/samp-bcrypt )
4- [ ![ sampctl-supported] ( https://shields.southcla.ws/badge/sampctl-SampBcrypt-2f2f2f.svg )] ( https://github.com/Sreyas-Sreelal/samp-bcrypt )
2+ ![ Build] ( https://github.com/sreyas-sreelal/samp-bcrypt/actions/workflows/build.yml/badge.svg )
3+ [ ![ sampctl] ( https://img.shields.io/badge/sampctl-supported-2f2f2f.svg )] ( https://github.com/Sreyas-Sreelal/samp-bcrypt )
54[ ![ GitHub issues] ( https://img.shields.io/github/issues/Sreyas-Sreelal/samp-bcrypt.svg )] ( https://github.com/Sreyas-Sreelal/samp-bcrypt/issues ) [ ![ GitHub pull requests] ( https://img.shields.io/github/issues-pr-raw/sreyas-sreelal/samp-bcrypt.svg )] ( https://github.com/Sreyas-Sreelal/samp-bcrypt/pulls ) [ ![ GitHub pull license] ( https://img.shields.io/github/license/sreyas-sreelal/samp-bcrypt.svg )] ( LICENSE )
65
76A bcrypt plugin for samp in Rust.
@@ -35,11 +34,12 @@ If you are a sampctl user
3534 `make run`
3635
3736## API
38- * #### bcrypt_hash(playerid,callback[ ] ,input[ ] ,cost)
37+ * #### bcrypt_hash(playerid, const callback[ ] , const input[ ] ,cost,const args [ ] = "", {Float, _ }:... )
3938 * `playerid` - id of the player
4039 * `callback[]` - callback to execute after hashing
4140 * `input[]` - string to hash
4241 * `cost` - work factor (4 - 31)
42+ * `args` - custom arguements
4343
4444 **Example**
4545 ```Pawn
@@ -64,7 +64,7 @@ If you are a sampctl user
6464
6565 forward OnPassswordHash(playerid);
6666 public OnPassswordHash(playerid){
67- new dest[250 ];
67+ new dest[60 ];
6868 bcrypt_get_hash(dest);
6969 printf("hash : %s",dest);
7070 }
@@ -83,7 +83,7 @@ If you are a sampctl user
8383
8484 forward OnPassswordHash(playerid);
8585 public OnPassswordHash(playerid){
86- new dest[250 ];
86+ new dest[60 ];
8787 bcrypt_get_hash(dest);
8888 bcrypt_verify(playerid,"OnPassswordVerify","text",dest);
8989 }
0 commit comments