Author

Topic: Questions on Encrypt/Decrypt Message (Read 2105 times)

legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
November 05, 2020, 11:02:13 PM
#13
i would also like to add that when decrypt/encrypting messages in electrum, it only seems to work when using the uncompressed public keys in hexadecimal form, prefix 04. I tried using a compressed, prefix 02 or 03, and it doesnt work...
I just tried it with version 4.0.4 and it worked.
Let's try, encrypt a message using this public key and I'll decrypt it using my wallet:
Code:
03b0ac40b7ae70e7cb16a96c2f70ac7d71f233153bba27fd90de16220d0590e4e5

What are the exact steps that you did when you're testing the feature?
jr. member
Activity: 36
Merit: 27
November 05, 2020, 08:58:59 AM
#12
i would also like to add that when decrypt/encrypting messages in electrum, it only seems to work when using the uncompressed public keys in hexadecimal form, prefix 04. I tried using a compressed, prefix 02 or 03, and it doesnt work...
sr. member
Activity: 278
Merit: 254
December 14, 2015, 03:25:21 PM
#11
Encryption seems to work, once I followed the description and used the public key and not the address.  My wallet is Trezor based, and Trezor (including latest firmware) doesn't support decryption, so I couldn't easily check that part out.

legendary
Activity: 1876
Merit: 1475
December 14, 2015, 11:12:09 AM
#10
WORKING!!  Grin

Thanks, I've been using the address and not the public key. If I want to send a message to somebody else, how do I get the public key for their address?

There are ways to grab the public key from the blockchain as long as that address has spent coins at least once (the public key must be given to verify the signature of the TX).
However in practice you must just ask for it, it's public anyway. Ask for a public key and encrypt the message using that information.
Has anyone tried decrypting with it yet though? I've been able to encrypt fine (just like the screens above) however, when I go to decrypt I always get the message 'address not found'. I know it's the right encrypted message because all I'm doing is taking the encrypted message I just made and then trying to decrypt it back to verify it works.

You need to enter the public key too to decrypt the message, not just the encrypted string.
The easiest way to achieve this is by right-clicking on the address the message was encrypted with and selecting "Encrypt/decrypt message". That way the public key will be pre-populated.
Then enter the encrypted string and hit "Decrypt". You will be asked for your Electrum password and the decrypted message will appear.
sr. member
Activity: 285
Merit: 250
December 14, 2015, 10:57:37 AM
#9
WORKING!!  Grin

Thanks, I've been using the address and not the public key. If I want to send a message to somebody else, how do I get the public key for their address?

There are ways to grab the public key from the blockchain as long as that address has spent coins at least once (the public key must be given to verify the signature of the TX).
However in practice you must just ask for it, it's public anyway. Ask for a public key and encrypt the message using that information.
Has anyone tried decrypting with it yet though? I've been able to encrypt fine (just like the screens above) however, when I go to decrypt I always get the message 'address not found'. I know it's the right encrypted message because all I'm doing is taking the encrypted message I just made and then trying to decrypt it back to verify it works.
jr. member
Activity: 58
Merit: 3
August 21, 2015, 02:01:25 PM
#8

There are ways to grab the public key from the blockchain as long as that address has spent coins at least once (the public key must be given to verify the signature of the TX).
However in practice you must just ask for it, it's public anyway. Ask for a public key and encrypt the message using that information.
Yes but in BitcoinCore-QT wallet is not so easy  to get public key for one address -you must to be familiar with console and for Multibit is impossible.
 I think developers must think about this and make possible to be used address or public key - they have different length so it is not so difficult to programming or just to change algorithm to use only address like another clients.
sr. member
Activity: 373
Merit: 252
August 11, 2015, 01:12:15 PM
#7
Oops, sorry about my incorrect answer. I just had a chance to test EcuaMobi's method on my Electrum wallet and it worked just as it should. I originally was using an address as well in the public key area. Thanks for clearing that up EM!
sr. member
Activity: 336
Merit: 251
August 11, 2015, 11:24:29 AM
#6
Thanks for the help
legendary
Activity: 1876
Merit: 1475
August 11, 2015, 11:16:31 AM
#5
WORKING!!  Grin

Thanks, I've been using the address and not the public key. If I want to send a message to somebody else, how do I get the public key for their address?

There are ways to grab the public key from the blockchain as long as that address has spent coins at least once (the public key must be given to verify the signature of the TX).
However in practice you must just ask for it, it's public anyway. Ask for a public key and encrypt the message using that information.
sr. member
Activity: 336
Merit: 251
August 11, 2015, 11:03:52 AM
#4

I just tested it now and it's working. Are you sure you're entering the public key and not the address when encrypting? The whole public key is always required. You can get it by left-clicking an address and selecting 'Public Keys'. Then use that value to encrypt.



WORKING!!  Grin

Thanks, I've been using the address and not the public key. If I want to send a message to somebody else, how do I get the public key for their address?
legendary
Activity: 1876
Merit: 1475
August 11, 2015, 10:55:32 AM
#3
Tried searching the forum for more information on this function in Electrum but could not come up with much. Saw one post about this function being disabled in version 1.9.8 due to a bug.

I'm currently running version 2.3.2, is the encrypt/decrypt functional in this version?

Tried it but keep on getting an error/warning "Non-hexadecimal digit found"

I just tested it now and it's working. Are you sure you're entering the public key and not the address when encrypting? The whole public key is always required. You can get it by left-clicking an address and selecting 'Public Keys'. Then use that value to encrypt.

sr. member
Activity: 373
Merit: 252
August 11, 2015, 10:49:22 AM
#2
I just tested it on my copy of Electrum 2.3.2 on Windows and I get the same error as you, so I think it's safe to say that the function is still disabled on 2.3.2.
sr. member
Activity: 336
Merit: 251
August 10, 2015, 03:15:58 PM
#1
Tried searching the forum for more information on this function in Electrum but could not come up with much. Saw one post about this function being disabled in version 1.9.8 due to a bug.

I'm currently running version 2.3.2, is the encrypt/decrypt functional in this version?

Tried it but keep on getting an error/warning "Non-hexadecimal digit found"
Jump to: