mirror of
https://github.com/emn178/js-md5.git
synced 2026-08-12 20:31:43 +08:00
* Remove ascii parameter.
* Improve performance.
This commit is contained in:
@@ -30,20 +30,6 @@ If you use node.js, you should require the module first:
|
||||
md5 = require('js-md5');
|
||||
```
|
||||
|
||||
### Methods
|
||||
|
||||
#### md5(str, asciiOnly)
|
||||
|
||||
Hash string to md5, set asciiOnly to true for better performace if you ensure input is ascii.
|
||||
|
||||
##### *str: `String`*
|
||||
|
||||
String to hash.
|
||||
|
||||
##### *asciiOnly: `Boolean` (default: `false`)*
|
||||
|
||||
Specify the string encoding is ASCII.
|
||||
|
||||
## Example
|
||||
Code
|
||||
```JavaScript
|
||||
|
||||
Reference in New Issue
Block a user