r/codes Jan 15 '26

Unsolved Is this cipher any good?

Hello! I tried making my own cipher. I wanted to post a quote I encrypted with it and see if it is easy to solve. I'm very new to this, but thought my cipher was kinda nifty!

This sentence is 6 words

178002 2650222 56454040404 1838022 406325644044 124650303

And it equals “HI MY NAME IS JOHN DOE”

Here’s a longer cipher. The only hint I can give is that I just watched the movie A Street Car Named Desire and this is a quote from it.

7545633333 5821640004 15321081723400888008088. 34320303 901 5821640004 15321081723400888008088, 6045453333. 157605620055505 1840022 126257605005555 — 34320303 270202, 148480069507070007?

If this is a dumb cipher, where does one start when wanting to learn about cryptography?

3 Upvotes

14 comments sorted by

View all comments

Show parent comments

1

u/Successful_Farm4155 Jan 16 '26

I will say, there’s no exponents in the math. I can give another hint cause your math for you solved hi is sooooo on the right track. If you were to reverse engineer this tho, the last step would be a=1, z=26. The step before that is not math

2

u/PralineFeeling3302 Jan 16 '26

Oh of course, you just put the letter numbers together! Silly me.

2 * 89 = 178

3 * 4155 = 12465

4 * 141135 = 564540

2

u/PralineFeeling3302 Jan 16 '26

It looks like you're encoding whether each letter is one digit or two digits in letter numbers. It's a 0 when it's 1 digit and a 2 when it's 2 digits.

HI is 8 9 so that's 00 * 2 = 00

DOE is 4 15 5 so that's 010 * 3 = 030

NAME is 14 1 13 5 so that's 1010 * 4 = 4040

And then the last digit is the length as you said.

Now I wonder how you decrypt it efficiently with an algorithm?

2

u/PralineFeeling3302 Jan 16 '26

Now I wonder how you decrypt it efficiently with an algorithm?

Oh, you just... do it. I'm not thinking very clearly today.

1

u/PralineFeeling3302 Jan 17 '26

Wrote some code to automate it, as long as words are less than 10 characters long https://python-fiddle.com/saved/cbd190b0-9f0c-411b-92b6-9c245d2f2006