I am completely new to cryptography and am interested in encrypting two basic text strings into one encrypted text that can be accessed separately with two different keys (preferably using something easily accessible like 256bit AES). For example:
Text1= I like peanut butter
Key1= Password1
Text2= I'm allergic to peanut butter
Key2= Password2
Output: 5UniWN0MjkPvUbLImrQUP68W4tpwOBMp2nrDqV73xeY
This output is just Text1+Key1, but is there a way that I can get both to work simultaneously so if Key1 is used, Text1 is returned, but if Key2 is used, Text2 is returned?
From my understanding, this is called deniable encryption and I was wondering where I could find a generator.
Thanks so much in advance!