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

Decrypt with public key #62

Closed
kamillis opened this issue Feb 15, 2016 · 2 comments
Closed

Decrypt with public key #62

kamillis opened this issue Feb 15, 2016 · 2 comments

Comments

@kamillis
Copy link

Hello, is there any way to decrypt text using public key instead a private key? I would like to encrypt message on server using server's private key and I would like to decrypt it in browser using public key.

@zoloft zoloft closed this as completed Mar 9, 2016
@murkle
Copy link

murkle commented May 18, 2016

http://security.stackexchange.com/questions/9957/can-i-use-a-private-key-as-a-public-key-and-vice-versa
"You don't need to publish the private key at all - RSA is a trapdoor permutation which means:
If you encrypt with a public key, you can decrypt with the private key.
If you encrypt with a private key, you can decrypt with a public key."

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

3 participants