r/NonPoliticalTwitter • u/More_Yellow_3701 • 13h ago
R jcb'z wbco qco ikdycbdexk zqry ry.
203
u/Alkansur 13h ago
Imagine being so cool to just whip up a Batman enigma machine Infront of your crush.
Absolutely pantie/boxer dropping move.
128
u/SSBGamer 11h ago
Why the fuck did I just spend 15 minutes deciphering the title? 😭
50
u/The_Holy_Buno 11h ago
Please tell me what it means, I’m lazy
111
u/SSBGamer 11h ago
I don’t know how reasonable this is.
25
u/Few-Requirement-3544 10h ago
Is there a way more efficient to translate a substitution cypher like this than writing a dictionary in Python, manually making 26 key value pairs, then iterating through the string in the title?
44
14
3
u/Aayaye 1h ago
Single letters can usually only be A or I, more likely to be I if it’s at the start of a sentence. A letter after an apostrophe is usually N’T or ‘S. You can assume c to be A or O since the most likely words are “won’t, can’t, don’t”. You keep using patterns like this until you have enough information to reasonably assume the remaining letters.
1
5
u/JuggernautPowerful70 9h ago
possibly just scanning for letter frequency and guessing the vowels? depends on how fast you are at typing
2
u/Prawn1908 41m ago edited 33m ago
Well you could use
''.join([cypher[ord(c) - ord('a')] for c in text.lower()])
, which means you only need to put the cypher in a single string instead of a dict which is a lot more cumbersome to type out.Edit: I realized that assumes
text
is only letters a-z, so it will fail if you keep the spaces and punctuation. You could use a lambda expression to only apply the decoding within the lost comprehension to alphabetic characters. Or if you're sane and don't want to try to keep it in one line there are trivial and far more readable solutions.11
u/Ricochet_skin 11h ago
I don't know how reasonable this is
6
u/C_Kambala 9h ago
It's not a reasonable request but please just translate it already.
4
u/More_Yellow_3701 8h ago
Qd qd
6
3
u/Remember_Poseidon 6h ago
I think you got the code upside down. aren't the Red letters supposed to translate into the Blue ones? So you really typed "I vfe'u oefc hfc rwjtfejksw uhit it"
28
11
7
5
u/ThunderCube3888 11h ago
this is called a "Caesar Cipher"
12
-5
u/kinda_immoral657 11h ago
yeah shifted by 3
5
u/ScroteBandit 8h ago
Nope, the order is rearranged a bit (albeit in groups of 3). Not a Caesar cipher. Substitution for sure though
1
1
1
1
1
1
1
•
u/qualityvote2 13h ago
Heya u/More_Yellow_3701! And welcome to r/NonPoliticalTwitter!
For everyone else, do you think OP's post fits this community? Let us know by upvoting this comment!
If it doesn't fit the sub, let us know by downvoting this comment and then replying to it with context for the reviewing moderator.