Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The plaintext you obtained from the last question is used as a symmetric key to encrypt a secret message. The message is encrypted by openssl
The plaintext you obtained from the last question is used as a symmetric key to encrypt a secret message. The message is encrypted by openssl enc using aescbc cipher, nosalt, with the hex string of iv being aecfbababe
The example command for encryption is with the key replaced by :
openssl enc aescbc nosalt e in secret.txt out secret.txtenc K iv aecfbababe
secret.txtenc is attached. Decrypt the secret, and find the message.
When you decrypt the secret, you will receive a warning from openssl: "hex string is too short, padding with zero bytes to length". This is because the length of the private key we use is less than bit. In such cases, openssl pads private key with zeros. Please use stronger keys in real life.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started