Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solve vigenere code without key - python

This is the problem I have to figure out:

"A message has been encryption using Vigenere encryption method discussed in class, and its cipher text EQNVZ has been intercepted. Break the code. Assume that the key is the same length as the message, and the message and the key consist only of uppercase letters."

Is there are way to do this in python? I know there is a way to make a cipher text in python, but is there a way to go the other way?

like image 788
JR34 Avatar asked Jun 16 '26 14:06

JR34


1 Answers

It is a trick question. If "the key is the same length as the message" then you have a one-time pad that conceals everything except the message length.

like image 200
Raymond Hettinger Avatar answered Jun 18 '26 04:06

Raymond Hettinger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!