Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

is generateRSAKey() deterministic? #27

Open
ramsestom opened this issue Apr 21, 2017 · 4 comments
Open

is generateRSAKey() deterministic? #27

ramsestom opened this issue Apr 21, 2017 · 4 comments

Comments

@ramsestom
Copy link

From the documentation, it is not entirely clear wether the generateRSAKey() function is determinitic or not.
Meaning, if I use the same PassPhrase and Bits values, am I ensured that the generated RSAkey would always be the same or can it be different from one call to the function to another?

@ericwooley
Copy link

I think it would be an easy test to check, and i haven't used this lib yet, but I probably will be in a minute.

From the doc:

// The passphrase used to repeatably generate this RSA key.
var PassPhrase = "The Moon is a Harsh Mistress."; 

I would think that since they are just repeating the passphrase, it would be deterministic. If I use this lib, i will update you with my test results.

@coeneivan
Copy link

@ericwooley Have you used this lib?

@ericwooley
Copy link

@coeneivan I didn't end up using it :(

Good luck though.

@dansgithubuser
Copy link

It is not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants