This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Key exchange with jsrsasign #115
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
fe56829
feat: export/import password protected RSA key
richardschneider b8c1a2f
docs: crypto.key.import
richardschneider 2b111d1
test: import with wrong password
richardschneider 5c77d7c
fix: lint
richardschneider 5795206
test: importing openssl keys
richardschneider 86a7f8b
just to trigger circle with new ubuntu
daviddias d002f62
feat: get the RSA key id
richardschneider 8dd2bfe
feat: get the ED 25519 key id
richardschneider 8d6eb41
feat: pbkdf2
richardschneider 7172a11
fix(pbkdf2): base64 has more chars to guess than hex
richardschneider 22f6bfa
chore: update deps
daviddias File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you put these in files as text data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure can, but why? They are only used in one place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want me to use
fs
to read the file. Or wrap them inmodule.export
with back tick and thenrequire
them.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can have a file with these pem keys and do fs.readFileSync once.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I can do. But why. Tests should be easy to read. Why the indirection and requiring file support.
Will
fs.readFileSync
be supported in browser tests?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@richardschneider fs.readFileSync is supported (thanks to the bundler).
Agreed and that is why having 40 lines of a string that has no other information that is human readable than the fact that it is a private key is better kept in a file that has that name so that in the test code you just have one line to refer to the private key.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you feel really strongly about leaving them here, we can deal with it. It might just be my personal preference. No need for bikeshedding :)