Data encryption #398
Answered
by
hoakbuilds
sh4hri4roo
asked this question in
Q&A
-
Hello, I'm trying to encrypt/decrypt private messages between 2 parties rather than sign/verify. I just want to know if Solnet supports that? |
Beta Was this translation helpful? Give feedback.
Answered by
hoakbuilds
Jun 11, 2022
Replies: 1 comment 1 reply
-
Technically Solnet does not support this, Ed25519 keys used by Solana are not technically secure for encryption and decryption as they are specifically made for EdDSA, the edwards curve digital signature algorithm. You can convert these keys to X25519 and thus perform encryption and decryption using those keys, but it is not a trivial thing to do. Here's a cool read about it. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sh4hri4roo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Technically Solnet does not support this, Ed25519 keys used by Solana are not technically secure for encryption and decryption as they are specifically made for EdDSA, the edwards curve digital signature algorithm. You can convert these keys to X25519 and thus perform encryption and decryption using those keys, but it is not a trivial thing to do. Here's a cool read about it.