Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Elwar on April 09, 2013, 04:45:01 AM



Title: Is there a way to encrypt a message with one key and decrypt it with another key
Post by: Elwar on April 09, 2013, 04:45:01 AM
Is it possible to have two paired keys such that I encrypt a message with one key, then later decrypt that same message with a different key?

I basically am looking to encrypt a message on a server, the server then releases the encrypted message.

Then later, the key to decrypt the message will be released.

But I am just trying to play it safe as far as storing or transferring the key used to encrypt the message in the first place. I would rather just immediately discard it once the message is created and hold the second key in cold storage until it is time to release it.

Any thoughts?


Title: Re: Is there a way to encrypt a message with one key and decrypt it with another key
Post by: Chet on April 09, 2013, 04:47:08 AM
pgp


Title: Re: Is there a way to encrypt a message with one key and decrypt it with another key
Post by: Elwar on April 09, 2013, 05:07:58 AM
pgp

Got it, thanks.


Title: Re: Is there a way to encrypt a message with one key and decrypt it with another key
Post by: crypTrade on April 09, 2013, 05:09:54 AM
That's basically the whole point of public key crypto.


Title: Re: Is there a way to encrypt a message with one key and decrypt it with another key
Post by: Etlase2 on April 09, 2013, 08:05:35 AM
Not really the whole point, especially considering it's not the part that bitcoin uses-- non-repudiation (http://en.wikipedia.org/wiki/Non-repudiation)


Title: Re: Is there a way to encrypt a message with one key and decrypt it with another key
Post by: crypTrade on April 09, 2013, 08:12:12 AM
Not really the whole point, especially considering it's not the part that bitcoin uses-- non-repudiation (http://en.wikipedia.org/wiki/Non-repudiation)
yes. The other half is sign with one key, verify with another.