Question: Use python please Problem 3: Write a program to encrypt messages of arbitrary length using AES block cipher in an appropriate authenticated mode of encryption,
Problem 3: Write a program to encrypt messages of arbitrary length using AES block cipher in an appropriate authenticated mode of encryption, such that it provides both secrecy and integrity. Input: your program should take command line arguments, ask the user if they want to encrypt or decrypt the message, if they want to encrypt the message, it would take plaintext message as an input, and if they want to decrypt the message, it would take ciphertext as input. Output: If the user wants to encrypt the message, your program should print the ciphertext and the authentication tag and if the user wants to decrypt the message, it should print the plaintext only if the authentication tag is valid and print an error if the authentication tag is invalid
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
