Tasks:
Implement an encryption function that takes a string and a fixed key and returns the encrypted string using XOR.
Implement a decryption function that takes the encrypted string and the same key and returns the original plaintext.
The XOR operation is symmetric, meaning that encrypting and decrypting use the same process.
Instructions:
Encrypting the Plaintext: Take a string (e.g., "HELLO") and convert each character to its ASCII value using ord(). XOR each character’s ASCII value with a fixed key (choose a key, e.g., 123). Convert the XOR-ed values back to characters using chr() to get the encrypted string.
Decrypting the Ciphertext: To decrypt, apply the XOR operation on the encrypted string with the same key. The decryption should return the original plaintext message.
Code Structure: Write two functions: one for encryption (xor_encrypt) and one for decryption (xor_decrypt). Each function should take in a string and a key, apply the XOR operation, and return the result