Score:0

Multi key layered encryption verification

us flag

Is it possible to take some value text like “Hello World!” And encrypt it with a random key. Then take the encrypted message and encrypt it again with another random key. And so on…

Then can you write a function that takes in the final encrypted message plus any one of the keys from before and return True or False. With True being: the key was used to encrypt the message. And False being: the key was not used to encrypt the message.

If this is possible. Could you point me in the right direction of what style of cryptography this is. Thanks :)

knaccc avatar
es flag
I assume you want it to be the case that the ciphertext can only be decrypted with knowledge of all keys? You could just append a list of the hashes of every key used to encrypt.
us flag
Not exactly. I want it to be encrypted with multiple keys and then allow it to be decrypted by one key. But that key can be any one of the encryption keys.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.