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
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -154,8 +154,8 @@ Asynchronously generates a salt.
154
154
| rounds | *number | function(Error, string=)* | Number of rounds to use, defaults to 10 if omitted
155
155
| seed_length | *number | function(Error, string=)* | Not supported.
156
156
| callback | *function(Error, string=)* | Callback receiving the error, if any, and the resulting salt
157
-
| @returns | *Promise* | If `callback` has been omitted
158
-
| **@throws** | *Error* | If the callback argument is present but not a function
157
+
| **@returns** | *Promise* | If `callback` has been omitted
158
+
| **@throws** | *Error* | If `callback` is present but not a function
159
159
160
160
### hashSync(s, salt=)
161
161
@@ -177,8 +177,8 @@ Asynchronously generates a hash for the given string.
177
177
| salt | *number | string* | Salt length to generate or salt to use
178
178
| callback | *function(Error, string=)* | Callback receiving the error, if any, and the resulting hash
179
179
| progressCallback | *function(number)* | Callback successively called with the percentage of rounds completed (0.0 - 1.0), maximally once per `MAX_EXECUTION_TIME = 100` ms.
180
-
| @returns | *Promise* | If `callback` has been omitted
181
-
| **@throws** | *Error* | If the callback argument is present but not a function
180
+
| **@returns** | *Promise* | If `callback` has been omitted
181
+
| **@throws** | *Error* | If `callback`is present but not a function
182
182
183
183
### compareSync(s, hash)
184
184
@@ -201,8 +201,8 @@ Asynchronously compares the given data against the given hash.
201
201
| hash | *string* | Data to be compared to
202
202
| callback | *function(Error, boolean)* | Callback receiving the error, if any, otherwise the result
203
203
| progressCallback | *function(number)* | Callback successively called with the percentage of rounds completed (0.0 - 1.0), maximally once per `MAX_EXECUTION_TIME = 100` ms.
204
-
| @returns | *Promise* | If `callback` has been omitted
205
-
| **@throws** | *Error* | If the callback argument is present but not a function
204
+
| **@returns** | *Promise* | If `callback` has been omitted
205
+
| **@throws** | *Error* | If `callback` is present but not a function
206
206
207
207
### getRounds(hash)
208
208
@@ -212,7 +212,7 @@ Gets the number of rounds used to encrypt the specified hash.
0 commit comments