# Import necessary modules from the cryptography library
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends import default_backend
import os
# Generate a random 16-byte key using the os.urandom() function
key = os.urandom(16)
# Create an AES cipher object using the Cipher class from the cryptography library
aesCipher = Cipher(algorithms.AES(key), modes.ECB(), backend=default_backend())
# Create an encryption object and a decryption object using the encryptor() and decryptor()
aesEncryptor = aesCipher.encryptor()
aesDecryptor = aesCipher.decryptor()
# Define some data to encrypt
data_to_encrypt = "Helloworld".encode('utf-8')
# Encrypt the data using the AES encryption object
encrypted_data = aesEncryptor.update(data_to_encrypt) + aesEncryptor.finalize()
# Decrypt the encrypted data using the AES decryption object
decrypted_data = aesDecryptor.update(encrypted_data) + aesDecryptor.finalize()
# Print the original data and the decrypted data to verify that they match
print("Original data:", data_to_encrypt)
print("Decrypted data:", decrypted_data)
I am getting a value error in the above code.Do suggest your thoughts on how to troubleshoot the above