Questions tagged [substitution-cipher]

A substitution cipher is an encryption algorithm which works by replacing plaintext units with corresponding ciphertext units, following some rule depending on the key.

Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

How to break Random Subsitution Cipher that changes key every 16 characters?

Monoalphabhatic Random Subsitution Cipher is pretty hard to crack compared to Ceasar Cipher especially through brute force but using frequency analysis, provided enough cipher text is easy. But what ...
Sprax's user avatar
  • 19
0 votes
0 answers
34 views

efficient way to break substitution cipher based on frequency attack

I wrote an attack based on frequency analysis to break the substitution cipher. The code is below by Python. ... ...
Guanting Liu's user avatar
1 vote
2 answers
78 views

Substitution Cipher

For the Substitution Cipher, for functions such as $$f(x) = x^k \pmod{26}$$ or $$f(x) = x^k + k \pmod{26}$$ (functions that consist of x^k), why do the values of k=5 or k=7 or k > 10 have one-to-...
bjpo027's user avatar
  • 11
1 vote
0 answers
42 views

A ctf practice question [closed]

Ciphertext : UCOWgokwyaqgkqguowgykkg Alice said Adobe was attacked this year, find the sum of digits of that year. (Alice - a) Bob said i would want to know the month as well, i'm curious. (Bob - b) ...
crypto12's user avatar
1 vote
1 answer
98 views

How do AES Substitution box's offer any additional security since it's 1 to 1?

If the Substitution box is 1 to 1 (a specific value can only ever be a specific box value), and the contents of Rijndael S-box is public, how does this offer any additional security? With AES the ...
Mark Thomas's user avatar
0 votes
1 answer
246 views

All combinations to a substitution cipher

Is there any software that can output all possible solutions to a substitution cipher? I have a 34 character substitution cipher as follows: ABHIJCKDELMFNOEPQ RDSTUVWGFADBXCYGZ 15 of the characters in ...
Jake's user avatar
  • 1
3 votes
1 answer
721 views

AES with a different implementation of byte substitution step

I have tried to answer this question for quite some time now. But a complete intuitive understanding still eludes me: suggested a new implementation for AES: The byte substitution step will be ...
gabi's user avatar
  • 31
1 vote
1 answer
109 views

What is the difference between a substitution cipher and an oracle?

I was looking into the opaque authentication protocol and they discuss an oracle, which, if I understand it correctly is a projection $Z$ from $f$ to $g$ ($g$ at least the size of $f$), which maps ...
Koos Gadellaa's user avatar
1 vote
0 answers
53 views

Finding a specific word in a substitution cipher

Rand48 is a pseudo-random generator which produces a sequence of any given integer using the following rule: $a_n=(25214903917 \cdot a_{n-1})\bmod 2^{48}$. If $b_n=\lfloor a_n/2^{16} \rfloor \bmod 52$,...
Mohammadsadeq Borjiyan's user avatar
0 votes
1 answer
384 views

Decrypting Mono-Alphabetic Substitution Ciphertext

I am reading Introduction to Modern Cryptography 3rd Edition (Google Books Preview of Relevant section, pages 10-11) and am struggling to understand the description of an attack method on a ...
alphazwest's user avatar
0 votes
1 answer
82 views

Efficient Obfuscation or Encryption method with low memory usage

We are manufacturing a sensor which transmits in 8 byte packets. This sensor will be used by several different receivers, some of which have very little spare RAM available (< 3 kb). On some of the ...
Disco Stu's user avatar
  • 103
1 vote
0 answers
17 views

Connecting, joining or merging Substitution Permutation layer

I am trying to identify how the SP Network is constructed. I am looking for plausible solutions that help to connect these layers together and what are the ways that exist in literature other than Kam ...
Muhammad Awais's user avatar
3 votes
2 answers
168 views

Enigma machine rotor internal wiring question

I have a question regarding the internal wiring of the rotors of the Enigma machine. I'm trying to understand some details about the original Enigma machine. To the best of my understanding, each ...
toni995's user avatar
  • 31
0 votes
0 answers
122 views

How do I progress with cracking this monoalphabetic substitution cipher that ignores natural word divisions?

Having some trouble cracking this cipher (this is part of a homework assignment for a cryptology class) I've looked at letter frequencies but I'm not sure what else there is to help me. Given the ...
Matt's user avatar
  • 101
1 vote
1 answer
436 views

Key space of a substitution cipher

I was going through a cryptography course, and I found a question there that: What is the size of the key space of the substitution cipher with 26 letters? Its answer was 26! I am not sure what this ...
Chinmay Pant's user avatar
2 votes
0 answers
113 views

Need some help with decryption code for monoalphabetic substitution

I am working on decrypting ciphertext in monoalphabetic substitution algorithm. I tried to decrypt using frequency histogram of English alphabets individually. The percentage of these frequencies can ...
devcode46's user avatar
0 votes
2 answers
75 views

How to verify most appropriate cleartext?

So basically I was implementing a decryption tool (just for fun) and the first encryption logic I decided to implement was Caesar Cipher. So if I have the input as ...
Aritro Shome's user avatar
1 vote
1 answer
77 views

symbol representation based cipher? [closed]

so i had an idea recently for a cipher. the idea is as follows: for every ascii character in the input, replace it with a corresponding sequence of 25 binary digits that, when arranged into a 5x5 grid,...
zackit's user avatar
  • 133
1 vote
1 answer
122 views

Enigma Machine rotors math

I have been doing a study about the enigma machine for the past weeks. I managed to get ahold of the formulae used in "Cryptography, Information theory and error-correction" book for the ...
Marizard's user avatar
0 votes
2 answers
113 views

How many different ciphertexts in repeated substitution cipher?

Consider an alphabet with 26 letters. Then a substitution cipher has $26!$ possible ciphertexts (with every letter substituted). What about repetive substitutions on a 5 letter word for example? How ...
cluster34's user avatar
4 votes
2 answers
275 views

Substitution ciphers amended with cipher block chaining: susceptible to frequency analysis?

I have been studying ways to amend a simple substitution cipher, and one of the toy suggestions was to use CBC in the following way: identify each letter with a number from $0\ldots 25$ start with a ...
sunsetgreen's user avatar
4 votes
3 answers
1k views

Can anyone explain to me the difference between the OTP (one-time pad) and Vernam Cipher?

I heard they are very similar, although there are subtle differences between the two.
Nirian_Qasqai's user avatar
1 vote
1 answer
60 views

Are basic replacement ciphers always bad for structured data encryption?

I have read that basic replacement ciphers, such as replacing one byte with another specific byte at each location, are far less effective with non-randomized data. My question is, can this problem be ...
Matt's user avatar
  • 25
4 votes
2 answers
327 views

Which sub operation is more expensive in the AES encryption process?

In the AES encryption process, there are various sub-operations, like SubByte, MixColumns, ARK etc. My question is which of these operations is more expensive? In a video lecture by Dan Boneh, it is ...
Radium's user avatar
  • 157
2 votes
1 answer
766 views

Enigma ring settings - is the relative location of the turnover all that matters?

I understand that the ring setting of an Enigma rotor changes the alignment between the internal wiring and the letters on the ring. For example, in the diagram below, rotor I has ring setting 2 (B), ...
Evan's user avatar
  • 121
1 vote
2 answers
921 views

Hill cipher concepts

I have some questions about the Hill cipher. There is a rule for key K: Determinant of matrix and number of characters of the alphabet must be coprime. What does ...
Arth's user avatar
  • 111
0 votes
1 answer
47 views

Rotor that divides binary number by mod 3

Let's say we have transformer(?) A = $\{0;1 \}$, B = $\{0;1\}$, $Q = \{q_0,q_1,q_2\}$, where A - plaintext alphabet, B - encryption alphabet, Q - the set of states. The functions of the rotor are ...
Gianni D'Adova's user avatar
3 votes
0 answers
593 views

Identifying correct cipher

I am trying to decrypt a text(~900 characters) and I started with the assumption that its a Vigenère cipher as the one of the identifier tool identified it as Vigenère cipher and also the Index of ...
solveapuzzle's user avatar
1 vote
0 answers
137 views

Deciphering a substitution cipher if frequency analysis doesn't work (hypothetically)

If a text ciphered by substitution is in a artificial language with equal frequency distribution of characters, and perhaps 2 or 3-grams too, what would be the next, easy to understand, ways to ...
Leopoldo Sanczyk's user avatar
1 vote
1 answer
50 views

Personal ledgible quick cipher

The problem: When I'm writing or reading information (be it on a screen or a physical medium) the information is vulnerable. So long as I'm not alone, anyone can simply glance at my screen or journal ...
Dragongeek's user avatar
0 votes
1 answer
72 views

How does pairing letters increase the security of a substitution cipher?

Hello can someone help me to understand this : One way to reduce this problem is to increase the size of the cipher alphabet. Rather than considering our cipher alphabet to be just the 26 letters, ...
Wejdene's user avatar
2 votes
2 answers
994 views

How were codes in WW1 reciphered (to enhance security levels) without them turning meaningless?

In WW1, the Germans made their communications secret by encoding their messages. This meant that the message's sender would have a codebook with all possible words and phrases he might use listed in ...
Kristian Francisco Milla Niels's user avatar
1 vote
0 answers
144 views

Cracking a Shift Cipher that uses an Unknown Deterministic Scheduling Algorithm

Consider a shift cipher that has the following encryption scheme: The plaintext contains lowercase characters and spaces, is composed of English text, and is length 500. Thus, the message (and ...
Dovi Salomon's user avatar
1 vote
0 answers
203 views

Simple Cipher Cryptography on Hex File [closed]

I have been assigned this hex file : https://drive.google.com/file/d/1EeidY67VuIddIC-e-xiiKhth1ucMhM_r/view?usp=sharing The goal is to decrypt it to something meaningful. The only hint given is that ...
Chris Avraam's user avatar
1 vote
0 answers
338 views

How do I calculate the conditional probability of a Caesar cipher?

I have a frequency distribution of letters for the plaintext and the ciphertext. I'm trying to determine the conditional probabilities to identify the plaintext/ciphertext pairings. If I encrypt ...
huffandpuff's user avatar
8 votes
4 answers
8k views

Why is the Keyspace of a Substitution Cipher not 2^26 but 2^88

It is known that a cipher has a keyspace of cryptographic algorithm whose key length is $n$ is given by $2^n$, but the keyspace of the substitution cipher is $2^{88}$ which is an approximation of $26!$...
shehan.k's user avatar
1 vote
0 answers
155 views

How to decrypt a combination of transposition and substitution cipher text

I'm having problems decrypting a cipher text that has an transposition cipher applied to it but also a substitution cipher. I don't know in which order they were applied. Does anyone know what steps I ...
David's user avatar
  • 31
0 votes
1 answer
829 views

Decrypting a substitution cipher, but with symbols instead of letters

I'm trying to decipher a message encrypted by a substitution cipher (probably a monosubstitution). But the problem is, that we have symbols instead of letters (letters were substituted for random ...
Peter's user avatar
  • 3
2 votes
2 answers
2k views

How to distinguish a transposition cipher from a simple substitution cipher only given a ciphertext?

I am working on one interesting question. There is a ciphertext that has 10,000 letters. We need to distingish whether this ciphertext was encrypted by a transposition cipher or a simple subsitution ...
董冠方's user avatar
  • 123
1 vote
2 answers
4k views

Most efficient way to crack a monoalphabetic substitution cipher with spacing intact

I've got a cipher I've been challenged to crack by hand. It's a monoalphabetic substitution cipher, and the English spacing is intact, so all of the words are the right size. Is there a more ...
Legorooj's user avatar
  • 464
0 votes
2 answers
155 views

What kind of decryption is used in this example? [closed]

I stumbled upon an encrypted text on a website, to which Google had brought me, showing me the plain text also. So does anyone know what kind of encryption was used here and how to decrypt it, so I ...
Kaniee's user avatar
  • 1
4 votes
2 answers
1k views

Was the Enigma's double stepping mechanism intentional?

It's sometimes refered to as the double stepping anomaly, so was it just a design flaw or was it put in place deliberately?
b3nj4m1n's user avatar
  • 227
1 vote
1 answer
1k views

Enigma rotation example

According to wikipedia: BDZGO is the expected outcome when doing the enigma chipher on the letters AAAAA with rotors I,II,III and reflector B. ...
b3nj4m1n's user avatar
  • 227
3 votes
2 answers
463 views

modified substitution permutation networks

I have a model of substitution permutation networks, modified as follows: instead of iterating $n$ times a round(each of which is composed of the key mixing phase, substitution S-BOX) and ...
quaqua's user avatar
  • 63
3 votes
2 answers
362 views

Crack a polyalphabetic cipher given a pair of (plaintext, ciphertext) encrypted by it

The original question only states that a classical cipher is used, and I am going to articulate 1) why I think a polyalphabetic substitution cipher is used AND 2) my attempts so far. The Question <...
David Chen's user avatar
1 vote
0 answers
48 views

Proving at most one affine permutation mapping $x$ to $u$ and $y$ to $v$ with $x,y \in \mathbb{Z}_n$ and $\gcd(x−y,n) = 1$

Suppose that $x,y \in \mathbb{Z}_n$ with $\gcd(x−y,n) = 1$. Prove that for any $u,v \in \mathbb{Z}_n$ there is at most one affine permutation mapping $x$ to $u$ and $y$ to $v$.
Heaven's user avatar
  • 11
2 votes
0 answers
60 views

Is there a way to make a non-specific algorithm to decypher substitutions with "anti-frequency analysis" measures?

There's a code I'm trying to decipher. What I know is that it's a simple substitution, with just a few added rules intended to make frequency analysis and other very common methods a little less ...
Teleporting Goat's user avatar
1 vote
1 answer
979 views

Cryptoanalysis using Frequency Analysis

I have read some documents to decrypt ciphertext without a key using Frequency analysis. here are my questions: If the most occurring Char is not 'E' then how do we start? Let's say I have this ...
Awais Arshad's user avatar
4 votes
2 answers
382 views

How does an S-box introduce confusion

I'm trying to find the logic for introducing the S-box, but having trouble understanding why. In a simple cipher, e.g. c = pt xor key I understand that I can ...
Benjamin Larsen's user avatar
2 votes
1 answer
177 views

Repeated Vigenère Cipher

I was looking into the Vigenère cipher when I thought of something. Would you improve the security of the cipher if you shifted each letter (from the text you want to encrypt) with each letter of the ...
patricab's user avatar