Skip to content

Commit 4f9bfc3

Browse files
update docs and readme
1 parent 07140e1 commit 4f9bfc3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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

76
A 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

Comments
 (0)