Q: Encryption with XOR in Python 3.6 I have a bit of Python code that I made. It's using XOR to encrypt. I don't really have much knowledge of Xor so could someone tell me why this code does absolutely nothing, or could at least point me to somewhere a complete newbie could learn XOR? Thanks!
def xor_attmpt():
    message = input("Enter message to be ciphered: ")
    cipher = []
    for i in message:
        cipher.append(bin(ord(i))[2::])

    cipher = "".join(cipher)
    privKey = input("Enter the private key: ")
    keydecrypt = []
    for j in privKey:
        keydecrypt.append(bin(ord(j))[2::])
    keydecrypt = "".join(keydecrypt )

    print("key is '{0}'" .format(keydecrypt))
    print("encrypted text is '{0}'" .format(cipher))
    from operator import xor
    for letter in message:
        print(xor(bool(cipher)), bool(keydecrypt))

