crypto-browserify icon indicating copy to clipboard operation
crypto-browserify copied to clipboard

Added generateKeyPair

Open m00nwtchr opened this issue 5 years ago • 17 comments

Added an implementation of generateKeyPair using the WebCryptoAPI

m00nwtchr avatar Aug 07 '19 17:08 m00nwtchr

tests?

calvinmetcalf avatar Aug 07 '19 17:08 calvinmetcalf

How do i create tests if key gen is randomized?

m00nwtchr avatar Aug 07 '19 19:08 m00nwtchr

Any news?

mahnunchik avatar Jul 29 '20 15:07 mahnunchik

@lmarianski could you add a test that makes sure that the outputs of this are valid inputs

calvinmetcalf avatar Jul 29 '20 16:07 calvinmetcalf

Oh yeah i forgot about this, i'll try to put something together, any ideas on what would the test actually entail? (besides the actual key generation, to make sure all is working)

m00nwtchr avatar Jul 31 '20 19:07 m00nwtchr

Also, any ideas as to why it's freaking out about the template string I use in my package?

m00nwtchr avatar Jul 31 '20 19:07 m00nwtchr

Anyways, added some tests, hope those will do, let me know if I should add anything else, and btw the whole test suite does pass for me locally (maybe its due to the travis script using older nodejs versions?)

m00nwtchr avatar Jul 31 '20 19:07 m00nwtchr

ok great will take a look

calvinmetcalf avatar Jul 31 '20 19:07 calvinmetcalf

we need to bump the node version in the .travis file, maybe to 10 or 12, I forget which is currently stable

On Fri, Jul 31, 2020 at 3:48 PM Łukasz Mariański [email protected] wrote:

Anyways, added some tests, hope those will do, let me know if I should add anything else, and btw the whole test suite does pass for me locally

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/crypto-browserify/crypto-browserify/pull/186#issuecomment-667321068, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAITRH6H4N5PFYXTZMD4X63R6MNYDANCNFSM4IKCS5HQ .

-- -Calvin W. Metcalf

calvinmetcalf avatar Aug 03 '20 12:08 calvinmetcalf

Do i just bump all the node versions in that file to LTS (v12)?

m00nwtchr avatar Aug 03 '20 21:08 m00nwtchr

yes please

calvinmetcalf avatar Aug 04 '20 16:08 calvinmetcalf

I'm waiting for this feature. When this feature would be available? 🙋🙋🙋

Raktim123 avatar Aug 22 '20 02:08 Raktim123

checks need to pass first

calvinmetcalf avatar Aug 24 '20 13:08 calvinmetcalf

actually @lmarianski you need to avoid requring crypto and instead require the specific libraries you need, what you need to do here is make 2 versions, one for node one for the browser and have a switch in the package.json

calvinmetcalf avatar Aug 24 '20 14:08 calvinmetcalf

Any news?

jimblackler avatar Jan 31 '22 14:01 jimblackler

Any news?

vstyler96 avatar Apr 11 '22 19:04 vstyler96

Any news?

edilsalvador avatar Nov 09 '22 12:11 edilsalvador