question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create new funcionality to encrypt and decrypt a text with private key

See original GitHub issue

Please create a new functionality to encrypt and decrypt an arbitrary text with EOS private key and other EOS public key.

Methods signatures (example):

object EncryptText(string text, key publicKey) Encrypts the text with the current Scatter Wallet EOS private key and the passed publicKey and returns the encrypted text.

object DecryptText(string encryptedText, key publicKey) Decrypts the encryptedText with the current Scatter Wallet EOS private key and the passed publicKey and returns the decrypted text.

Please check this example with EOS js API and local keys, should be simple, like include this code inside scatter js lib: https://github.com/b-mail/Documentation/blob/master/javascript-encrypt.md

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
wpuriczcommented, Jul 2, 2018

I am also interested in this issue. I think if Scatter could offer AES encrypt / decrypt methods, it would be great for EOS dapps. We could easily have end-to-end encryption that offers privacy and zero-knowledge for off-blockchain data that is kept in private servers.

3reactions
nsjamescommented, May 15, 2018

You know what. Let me take another look at this once some other more important things ( dawn4, migrations, etc ) are done. I’m reopening this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generating Keys for Encryption and Decryption - Microsoft Learn
Understand how to create and manage symmetric and asymmetric keys for encryption and decryption in .NET.
Read more >
How to Encrypt and Decrypt Strings in Python? - GeeksforGeeks
In Asymmetric-key Encryption, we use two keys a public key and a private key. The public key is used to encrypt the data...
Read more >
encrypt() and decrypt() functions - IBM
The encrypt() and decrypt() functions encrypt or decrypt a varchar or nvarchar value by using a supplied key. Encryption is the process of...
Read more >
Encrypting and decrypting data with an asymmetric key
This topic provides information about creating and using a key for asymmetric encryption using an RSA key. If you want to use asymmetric...
Read more >
RSA Encryption & Decryption Example with OpenSSL in C
For encryption and decryption we need to prepare RSA structure. Use the below function to create RSA with key buffer. RSA * createRSA(unsigned ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found