Skip to content

Commit

Permalink
Add example of using .update() chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Caligatio committed Oct 10, 2022
1 parent 2c60363 commit 4821cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Example to calculate the SHA-512 of "This is a test":

```javascript
const shaObj = new jsSHA("SHA-512", "TEXT", { encoding: "UTF8" });
shaObj.update("This is a ");
shaObj.update("This is").update(" a ");
shaObj.update("test");
const hash = shaObj.getHash("HEX");
```
Expand Down

0 comments on commit 4821cbf

Please sign in to comment.