| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 83da19a commit 9908ece
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -690,7 +690,7 @@ Example: Using `Sign` objects as streams: | |||
| 690 | 690 | ||
| 691 | 691 | ```js | |
| 692 | 692 | const crypto = require('crypto'); | |
| 693 | - const sign = crypto.createSign('rsa-sha256'); | ||
| 693 | + const sign = crypto.createSign('RSA-SHA256'); | ||
| 694 | 694 | ||
| 695 | 695 | sign.write('some data to sign'); | |
| 696 | 696 | sign.end(); | |
@@ -704,7 +704,7 @@ Example: Using the `sign.update()` and `sign.sign()` methods: | |||
| 704 | 704 | ||
| 705 | 705 | ```js | |
| 706 | 706 | const crypto = require('crypto'); | |
| 707 | - const sign = crypto.createSign('rsa-sha256'); | ||
| 707 | + const sign = crypto.createSign('RSA-SHA256'); | ||
| 708 | 708 | ||
| 709 | 709 | sign.update('some data to sign'); | |
| 710 | 710 | ||
@@ -754,7 +754,7 @@ Example: Using `Verify` objects as streams: | |||
| 754 | 754 | ||
| 755 | 755 | ```js | |
| 756 | 756 | const crypto = require('crypto'); | |
| 757 | - const verify = crypto.createVerify('rsa-sha256'); | ||
| 757 | + const verify = crypto.createVerify('RSA-SHA256'); | ||
| 758 | 758 | ||
| 759 | 759 | verify.write('some data to sign'); | |
| 760 | 760 | verify.end(); | |
@@ -769,7 +769,7 @@ Example: Using the `verify.update()` and `verify.verify()` methods: | |||
| 769 | 769 | ||
| 770 | 770 | ```js | |
| 771 | 771 | const crypto = require('crypto'); | |
| 772 | - const verify = crypto.createVerify('rsa-sha256'); | ||
| 772 | + const verify = crypto.createVerify('RSA-SHA256'); | ||
| 773 | 773 | ||
| 774 | 774 | verify.update('some data to sign'); | |
| 775 | 775 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments