This is also the same teacher that give us the stupid .des project that I posted earlier
Btw thanks for your help guys, I’ll let you know if things worked out, rn we’re still doing a lot of things. But yah I will update you guys about that, but rn my teacher asking giving this new project
I read the instructions carefully, sadly I can’t give you the whole instruction since my computer is still having some issues, but for what I know
We have to bruteforce the key of the aes. Which I know would take years and years. My teachers said that, we should show the end result where the password would be shown and how long it took for us to get that password.
Our teacher told us to create a java or c++ code to implement the plainteact attack there. Is it possible
Update:
I found the instructions here it is
Tools: OpenSSL, Programming language (e.g., C++, Java) Procedure: 1.Encrypt known plaintext: •On Computer A, open a command prompt. •Use the following command to encrypt known.txt with AES-128-CBC: openssl enc -aes-128-cbc -salt -in known.txt -out ciphertext.aes -pass pass:”your_chosen_key“ Replace “your_chosen_key” with the actual key you want to use. 2. Transfer files: Transfer both known.txt and ciphertext.aes to Computer C
- Implement the attack: On Computer C, write a program in your chosen language (e.g., C++, Java) that does the following: ➢ Reads the contents of known.txt and ciphertext.aes. ➢ Iterates through a range of possible keys (or uses a dictionary). ➢ For each key: ▪ Decrypts ciphertext.aes using AES-128-CBC. ▪ Compares the decrypted output with the known plaintext from known.txt. ▪ If they match, the key is found; output the key and stop the program. Analyze the results: Observe the time taken to find the correct key and discuss the feasibility of known-plaintext attacks on AES with different key lengths.
That’s what my teacher instructed us to do
submitted by /u/myfile10
[visit reddit] [comments]
Source link