Jump to content

RSA with multiple recipents

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
FakeRobotGymnast

FakeRobotGymnast

    Learning Programmer

  • Members
  • PipPipPip
  • 43 posts
I understand the RSA algorithm and have all the preliminary data structures/algorithms down, but I don't quite understand how you can use it with multiple recipients à la PGP. Does anyone know how to do this?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I'm not clear on what you mean. Are you trying to encrypt a file with your private key, or your recipients' public keys, or something else?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
FakeRobotGymnast

FakeRobotGymnast

    Learning Programmer

  • Members
  • PipPipPip
  • 43 posts
I have my public key, my private key, and all the recipient's public keys. How would I create a ciphered message with which all the recipients could decrypt?

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
You would have to use your private key to encrypt it, and provide them with your public key. Generally, however, the idea is you would have to send each a separately encrypted version of the file using their public keys. Not convenient, but pretty secure.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
Guest_h4x_*

Guest_h4x_*
  • Guests
why encipher message if ALL should be allowed to view it?
you mean situation like that: deliver message, deliver key.
why bother? you could just give private heys to those allowet to read it.

#6
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,722 posts
If you give them your private key then they can read anything that anyone sends you.
sudo rm -rf /