Tags down


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

By : Mahesh Biyyala
Date : September 15 2020, 08:00 AM
seems to work fine
Assuming the key length is 26 (which it should be for the alphabet) Why is it not 2^26?
code :

Share : facebook icon twitter icon

Simple substitution cipher

By : Yaya
Date : March 29 2020, 07:55 AM
Any of those help If you want to skip the whitespace, then simply remove the else block. If you want to keep it, then add
code :
translate = translate.concat(' ');

difference between caeser cipher and a simple substitution cipher

By : Hasan
Date : March 29 2020, 07:55 AM
will help you The Caesar cipher uses a simple shift to determine the encrypted text. This example is taken from wikipedia (http://en.wikipedia.org/wiki/Caesar_cipher)
If you use a left shift of 3, you get a cipher that looks like
code :

How can I decipher a substitution cipher?

By : Italo
Date : March 29 2020, 07:55 AM
help you fix your problem I have a ciphered text file where A=I a=i !=h etc., I know the right substitutions. How can I generate a readable form of the text?
code :
tr 'Aa!' 'Iih'
tr 'Aa!Iih' 'IihAa!'

substitution cipher in c++

By : Warafta
Date : March 29 2020, 07:55 AM
seems to work fine While others have pointed out Map, I would have used a simple array (subs), of size 26 (If there are only capital alphabets).
Initialize the array with 0s. Read all the chars and their mapping. Store it something like this subs[char-'A'] = mapped_char. I will leave the reading to you.

How does a substitution cipher work in C?

By : Mehwish Jutt
Date : March 29 2020, 07:55 AM
it fixes the issue Yes: "C" is a good implementation language for encryption.
No: Basic substitution cipher are not good/secure. For data encryption use AES.
Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk