Python Forum
Where is problem in decrypting ADFGVX cipher
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where is problem in decrypting ADFGVX cipher
#3
(Nov-06-2023, 08:02 AM)armamos Wrote: I'm not sure, but the error you are getting is likely because you are trying to decrypt a message that is longer than the key. The ADFGVX cipher is a polyalphabetic substitution cipher, which means that it uses multiple alphabets to encrypt and decrypt messages. The key determines which alphabet is used for each character in the message.

If the key is shorter than the message, then the cipher will start using the same alphabets again for the later characters in the message. This means that the decryption will not be accurate.
I've already fixed the code; now, the only issue is with the key. If it's one character shorter than the input text to be encrypted, decryption doesn't work. However, if it's shorter by more characters, it works
Reply


Messages In This Thread
RE: How i add spaces in ADFGVX cipher - by armamos - Nov-06-2023, 08:02 AM
RE: How i add spaces in ADFGVX cipher - by Paragoon2 - Nov-06-2023, 10:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cesar Cipher ForsakenDusk 5 531 Apr-07-2024, 04:30 PM
Last Post: Pedroski55
Question Rsa Cipher Paragoon2 3 682 Nov-27-2023, 12:30 PM
Last Post: snippsat
  RSA Cipher with blocks Paragoon2 0 530 Nov-26-2023, 04:35 PM
Last Post: Paragoon2
  Caesar Cipher Help pbrowne 2 2,209 Jun-30-2021, 02:36 PM
Last Post: deanhystad
  Alternate solutions to cipher problem? Mark17 3 2,474 Oct-08-2019, 01:32 PM
Last Post: jefsummers
  Problem with caesar cipher lucaron 2 2,979 Feb-05-2018, 05:17 PM
Last Post: lucaron

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020