Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How secured is it to be reused multiple times? #6

Open
ibudisteanu opened this issue Feb 6, 2020 · 1 comment
Open

How secured is it to be reused multiple times? #6

ibudisteanu opened this issue Feb 6, 2020 · 1 comment

Comments

@ibudisteanu
Copy link

Hi! Amazing work. Simple and great! My question is how many times can a keypair (publickey, privatekey) can be reused to encrypt/decrypt data. Does it require only once, or can it be reused multiple times? Thanks

@libertylocked
Copy link
Owner

It can be used more than once because every encrypted message uses a new ephemeral key. There may be a limit when the 256 bit ephem key is reused, using birthday paradox it'll be approximately sqrt(2^256) messages for 50% chance of collision.

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

No branches or pull requests

2 participants