cryptico icon indicating copy to clipboard operation
cryptico copied to clipboard

is generateRSAKey() deterministic?

Open ramsestom opened this issue 7 years ago • 4 comments

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?

ramsestom avatar Apr 21 '17 01:04 ramsestom

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.

ericwooley avatar Nov 03 '17 23:11 ericwooley

@ericwooley Have you used this lib?

coeneivan avatar Jan 06 '19 21:01 coeneivan

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

Good luck though.

ericwooley avatar Jan 07 '19 17:01 ericwooley

It is not.

dansgithubuser avatar Aug 12 '19 02:08 dansgithubuser