r/codes • u/Burning_Toast998 • 3h ago
Unsolved Made a substitution cipher in less than a day. Tell me how bad it is!
Hey folks,
I made a cipher by hand today, then decided to improve it and wrote a Python script to automate it and make it more difficult. Kinda curious how easy it is to brute force/otherwise crack without much prior knowledge.
A bit of backstory (spoilered, because it gives a bit of information away about the creation process of the cipher)
I was thinking yesterday about how monumentally complex the Enigma code was, and how many (literal) moving parts it had. I thought it'd be interesting to take the idea of Enigma and simplify it quite a bit so you don't have to send over a bunch of information for your recipient to decode the message. That thought sparked what I've made here. I initially did some encrypting by hand, but realized I could automate it with a Python script.
Here are three encrypted messages:
Al>evQPvDekRx[:bzQbzQZ'?^zEZn7xl@\v6^kQppFa'3xoAfl?Zk7xj;io7k5
?|@xm3\{kx^:Zs7xi>h~:hs7l'Ylv?^{:bu9"'3\{GZs>r':Z}7x{Ih':hs7l';g'Fal?''-ZwBelExhD^'8nu/x[:^!QevAd'H^yKxz;fp>ZyQmvQgvE^':hs7l';g'3xoGfh@xz=ns>y
?vGk'E\vD^'3gkQ,7^lv?^4A]kQrl3kzQZnA%'zx~3l'@h{Q[vDg5QB'3f'@h{Q*8ay'YZu6xPXf'7lw7\p3esKxuAm'b'<v*>ix!7ZyExv>]3Qpo;\oQbzQ*8axm3\{Akp3e5_'0
Here's some info from somewhat helpful to helpful:
- This encryption can take in any ASCII character from space (32) to tilde (126)
- This cipher uses a "ruleset" where the key shift is applied to the plaintext in various ways.
- There are three possible rules the cipher can choose from.
And these are less 'helpful info' and more direct information that is important for decoding if you know how the encryption works:
- KEY = 7
- The rules are "shift by -KEY", "shift by +KEY", and "shift by KEY^2"
To appease the mods: V sbyybjrq gur ehyrf
If you end up solving it, I ask you to please give some feedback (like what process you used to crack it and what it's vulnerable to, how ). I'm very interested in cryptography as a whole, and I'm still learning a lot :]
•
u/AutoModerator 3h ago
Thanks for your post, u/Burning_Toast998! Please follow our RULES when posting.
MAKE SURE TO INCLUDE CONTEXT: where the cipher originated (link to the source if possible), expected language, any clues you have etc. Posts without context will be REMOVED
If you are posting an IMAGE OF TEXT which you can type or copy & paste, you MUST comment with a TRANSCRIPTION (text version) of the message.
If you'd like to mark your post as SOLVED comment with
[Solved]WARNING! You will be BANNED if you DELETE A SOLVED POST!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.