Pages:
Author

Topic: Encrypt/Decrypt arbitrary text using bitcoin keys? - page 2. (Read 5043 times)

full member
Activity: 150
Merit: 100
The encryption algorithm used in bitcoin is ECDSA which does not encrypt text, it's just a signature algorithm.

So, Alice could sign some text with her bitcoin address and Bob would know that it came from her (which would be a rather useful thing to be able to do with transactions).
full member
Activity: 175
Merit: 100
been trying to find details on how to do this for a couple of hours, but am not having luck with my searches...

Is it possible to encrypt any arbitrary string eg. "secret message for bob" using bob's bitcoin address (which is basically a public key, right?), and then have only bob be able to decrypt and read that text using his corresponding private key (which should be in his wallet.dat for example)?

How would you do this?


This would actually be really cool and shouldn't actually be too hard to implement.
hero member
Activity: 812
Merit: 1000
been trying to find details on how to do this for a couple of hours, but am not having luck with my searches...

Is it possible to encrypt any arbitrary string eg. "secret message for bob" using bob's bitcoin address (which is basically a public key, right?), and then have only bob be able to decrypt and read that text using his corresponding private key (which should be in his wallet.dat for example)?

How would you do this?
Pages:
Jump to: