How to set the Private-Key without generate_private_key?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript, node.js
Research direction
Start at the ece.decrypt entry point and inspect how its privateKey parameter is handled. Compare that behavior with the Node.js crypto.createECDH and setPrivateKey example in the issue; done when the supported way to provide the key is documented or the missing capability is clearly identified.
Written by the indexing model from the issue text.
Description
In Node Js this done as follows:
const crypto = require('crypto');
const ece = require('http_ece');
const dh = crypto.createECDH('prime256v1');
dh.setPrivateKey("d25a7249abac3beae6d03e0441867de762ea4cfc51e5c202a3fc0a45486d1f94", 'hex');
const params = {
version: 'aes128gcm',
authSecret: "a7omShAT1ycPQqu9UHaS6Q",
privateKey: dh,
};
const buf = Buffer.from(array2, 'hex');
const decrypted = ece.decrypt(buf, params);
console.log(decrypted.toString());
- Dominant language
- JavaScript
- Stars
- 33
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from web-push-libs/encrypted-content-encoding
-
`encrypt_data.json` file failing to pass http_ece/tests/test_ece.py::TestNode::test_(en|de)crypt Open
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
web-push-libs/encrypted-content-encoding#80 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
All issues in web-push-libs/encrypted-content-encoding
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·