| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 21a29d4 commit e009a35
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,10 +45,10 @@ const hashes = { | |||
| 45 | 45 | ||
| 46 | 46 | for (const name in hashes) { | |
| 47 | 47 | const group = crypto.getDiffieHellman(name); | |
| 48 | - const private_key = group.getPrime('hex'); | ||
| 48 | + const prime = group.getPrime('hex'); | ||
| 49 | 49 | const hash1 = hashes[name]; | |
| 50 | 50 | const hash2 = crypto.createHash('sha1') | |
| 51 | - .update(private_key.toUpperCase()).digest('hex'); | ||
| 51 | + .update(prime.toUpperCase()).digest('hex'); | ||
| 52 | 52 | assert.strictEqual(hash1, hash2); | |
| 53 | 53 | assert.strictEqual(group.getGenerator('hex'), '02'); | |
| 54 | 54 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments