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

1 Answer 1


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.


Your Answer

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

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