0

whether there are adequate ways to make the encryption / decryption of files using several different keys? That is, it is possible to make a group of n keys so that any of the group key could encrypt file and also with any of the group key to decrypt the file? (Of course, provided that no other key, in addition to these n group keys to decrypt the file could not be?)

6
  • Learn about key rotation. Commented Oct 6, 2016 at 20:11
  • 1
    you can not give the source of where this detail? It is simply the use of a master key for the group and the group of different keys, each of which refers to a master key? Commented Oct 6, 2016 at 20:17
  • @DmitriiKurylev If any of the n keys could encrypt and decrypt some ciphertext, then you only need 1 key. That's the group key. You could of course generate n keys which then use key-wrap to encrypt a single group key. Whether it is what you want, depends on your use case. Commented Oct 6, 2016 at 20:23
  • 3
    I'm voting to close this question as off-topic because this is not directly related to programming. Commented Oct 6, 2016 at 20:25
  • 1
    If you can encrypt and decrypt with any of the keys, then it doesn't matter if they are identical or not, since they have the same purpose and functionality. If you break one you got them all. You might be better off looking at public key (asymmetric) cryptography. Commented Oct 6, 2016 at 23:38

1 Answer 1

2

There isn't a way to encrypt with only one key, and be able to decrypt with several other keys individually.

You could have a group key that is encrypted by several keys, so those keys can decrypt the group key as needed, and the group key can be used to encrypt/decrypt data that is shared between users with different keys.

You could do the same thing with the data itself, but this means all keys need to be available for encryption, which doesn't seem to meet your use case.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.