* Remove ascii parameter.

* Improve performance.
This commit is contained in:
Chen Yi-Cyuan
2015-01-12 21:26:08 +08:00
parent 5bc2fd9a54
commit ca6b36b0ec
6 changed files with 84 additions and 89 deletions
-14
View File
@@ -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