juliangruber / keypair

Generate a RSA PEM key pair from pure JS
Other
274 stars 51 forks source link

only one set of private/public keys generated #16

Closed chiemekailo closed 6 years ago

chiemekailo commented 6 years ago

Hello, I am using the keypair add-on on my server as follows: let pair = keypair(); Each time the server routine is called, it returns the same character sets for the public key. I see that the private key varies (as desired) but the public key is always the same. Starts with MIIB and ends DAQAB Am I doing something wrong?

chiemekailo commented 6 years ago

Uh oh! I see now that they are not the same. Just start & end the same way.