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 can i decrypt by public_key and encrypt by private_key? #15

Open
nicktan28 opened this issue Jun 15, 2021 · 1 comment
Open

How can i decrypt by public_key and encrypt by private_key? #15

nicktan28 opened this issue Jun 15, 2021 · 1 comment

Comments

@nicktan28
Copy link

No description provided.

@osamagamal65
Copy link

How do I achieve this?
const encrypted = await EthCrypto.encryptWithPublicKey( publicKey, // encrypt with alice's publicKey JSON.stringify(data) );
this is a javascript npm package, it has a very clear naming c https://www.npmjs.com/package/eth-crypto

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