You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,9 @@ Returns the decryped output as a string using [defuse/php-encryption](https://gi
29
29
### encrypt($input, $key = false)
30
30
Encrypt a string, if no key is given one will be generated for you (Recommended) using [defuse/php-encryption](https://github.com/defuse/php-encryption)'s library.
Verify a form token for the given id. The $limit is optional andm ust be given in seconds, if the limit is 300 and the token is used after 300 seconds it will be considered invalid.
34
+
32
35
### password_hash($password)
33
36
Hash the given password. This function allows for longer passwords and isn't affected by the null-byte issue.
34
37
@@ -47,8 +50,13 @@ Return a random key using [defuse/php-encryption](https://github.com/defuse/php-
47
50
### randomString($length)
48
51
Returns a random string for the given length
49
52
50
-
### pseudoBytes($length)
51
-
Returns random bytes for the given length
53
+
### setFormToken($id)
54
+
Set a unique token in the session and returns it, can be used to verify post/get requests
52
55
53
56
### strlen($str)
54
57
Returns the length of the given string using mb_strlen when available
0 commit comments