Completely crypto noob here.
I'm looking for a cryptosystem made of a func f + key1 + key2 such that they satisfy:
- g(f(msg, key1),key2)=msg
- g(f(msg, key2),key1)=msg
- key1 != key2
Does such a cryptosystem exist?
Ideally I'd like f and g, to be the same function, but I'm ok if they are different.
It is ok if it's not Fort Knox secure, I want it to play with my nephews but I don't mind going hardcore :)