de Morgan's Laws states that the negation of disjunctions is the conjunction of the negations (NAND = NOT(P) OR NOT(Q)) or (NOR = NOT(P) and NOT(Q))
Encryption converts data in cipher text, using an XOR operator to do this. We just need the data and a key. The key being a binary number which is only known to the sender and recipient.