[Question][Hw2] #684
Replies: 9 comments
-
Why don't you make a your own printer function and use it during encryption? |
Beta Was this translation helpful? Give feedback.
-
But how would I know what is the expected result ? |
Beta Was this translation helpful? Give feedback.
-
You can use an external tool like |
Beta Was this translation helpful? Give feedback.
-
I don't understand how it would make sense for me to have the same two last characters ("wu") but having a mistake in the middle. We are using CBC so the encryption depends on the previously encoded block. If any of my encoded blocks was wrong, then the last encoded blocks can't be correct. |
Beta Was this translation helpful? Give feedback.
-
You may catch the concept of enc/dec, but your implementation might have a bug. Please debug your code carefully. |
Beta Was this translation helpful? Give feedback.
-
@seeifsalem Have you checked if the expected file and your output have the same size? |
Beta Was this translation helpful? Give feedback.
-
how would I check that ? I mean it seems to me that they have the same number of characters |
Beta Was this translation helpful? Give feedback.
-
Redirect your output from encrypting to another file like this:
and compare the file sizes of Or, you can just use
This will count the number of characters. The expected value is 13 for helloworld. |
Beta Was this translation helpful? Give feedback.
-
I just checked, I have the same number of characters but I think I solved my problem. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Name: Mohamed Seifeddine Salem
Hello,

I am having a hard time debugging the CBC encryption because this is what I stumble upon
is there any way to obtain the actual characters instead of these ���� ?
Beta Was this translation helpful? Give feedback.
All reactions