Simple: XOR both codes.
Drawbacks:
- Whoever knows two of the codes can esily process the third.
- Codes must equal in length. Or you have to extend the shorter one.
What requirements does the combination need to fit? Improve your question on this using the
Improve question[
^] link.