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 secure is your library? #4
Comments
Hi @VlodkoMr, It's usually not recommended to store encrypted data on chain because there is a chance that in the future the encryption will be cracked (for example with quantum computing). So if you do so make sure you have ways to upgrade to a better encryption algorithm in the future in case this algorithm is at risk. As concern the algorithm itself, Nevertheless in order to use TweetNaCl I had to convert the Ed25519 signing key pair into Curve25519, I used ed2curve-js to do so. If you check the ed2curve-js repo you can see the following statement:
Before using it in production it would be wise to make an security audit. Congrats on the chat app by the way! |
When developing cryptographic code, there are many ways to get it wrong without noticing. Many of the possible flaws cannot be found by testing, and the fact that some components (such as TweetNaCl) were audited doesn't say much about the security of the entire program. Having said that, I believe that this specific combination of primitives (Ed25519 signature scheme and X25519 key agreement used by NaCl box) is not vulnerable to cross-protocol attacks. Moreover, both are secure individually. Thus, the way the keys are used here should be secure, however, a proper proof is needed to confirm this. So, the reason for this notice is not because there are any weaknesses that we know about, but rather because this is an unverified cryptographic code which may have weaknesses that we don't know about. |
Thank you!!! |
I use it in my project to encode private conversation, but wonder about notice "This is an experimental library. We do not recommend to use it to store confidential information publically."
How can I test it or maybe you have suggestions how secure is your library. Any plans for improvements?
I used your library for private mode in direct messages:
https://test.chatme.page/
The text was updated successfully, but these errors were encountered: