1
$\begingroup$

I want to encrypt files, wich can be decrypted and encrypted by multiple different keys. Is there any algorithm which can accomplish this?

Example (Each user has a different key):

  • User 1 encrypts a file with his key
  • User 2 decrypts the file, adds information and encrypts it with his key
  • User 3 decrypts the file with his key
$\endgroup$

1 Answer 1

2
$\begingroup$

It seems that the similar problem was discussed here. The general approach was to encrypt the file with a random key and then encrypt copies of this key with users' keys.

However, if you'd like really different keys, check @ddddavidee's answer.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.