Questions tagged [caesar-cipher]

A very simple cipher in which the letters of the alphabet are substituted by a different letter that have a fixed distance to the original letter.

A very simple cipher in which the letters of the alphabet are substituted by a different letter that have a fixed distance to the original letter.

Named after Julius Caesar, because he is said to have used it.

788 questions
-1
votes
4 answers

Caesar Cipher not rotating letters properly? (Python)

I have attempted to make a Caesar Cipher for my first ever Python project at school. I kind of copied out code from a youtube video for the main cipher segment but when I encrypt the message a user types, it does a random cipher instead of a key…
Kieran
  • 41
  • 1
  • 2
  • 9
-1
votes
1 answer

caesar ciphering (segmentation fault)

I'm trying to write a program that Caesar ciphers the string given by the user, but every time I try running it the error "Segmentation Fault" pops up. What am I doing wrong? int main(int argc, string argv[]) { if (argc != 2) { …
user6843911
-1
votes
2 answers

Caeser Cypher with python recusrion

I was trying to write a function encodeM which basically takes a string s and integer move which shifts the ascii value of a character. I tried writing the funtion the normal way which I think works properly. Is there a way I can write the same…
-1
votes
1 answer

Need some assistance with a brute force Caesar Cipher

Currently I am trying to make a brute force caesar cipher in C++ which shows all the iterations as it guesses each key. Here is my code thus far: #include using namespace std; int main() { char message[100], ch; int i; cout…
Toror
  • 1
  • 1
-1
votes
2 answers

Command line argument condition pset2 caesar

I'm just started with a course for learning C, and am bumping in a problem with command line arguments. The assignment is this (there is more, but this is the part about the command line argument at the start): - Your program must accept a single…
dn3000
  • 1
  • 2
-1
votes
2 answers

caesar: lowercase letters that loop from z are not printing

I'm kinda stuck on this one. When I run my program all of the letters that loop past z do not print for some reason. The problem comes from this link: http://docs.cs50.net/2016/x/ap/problems/caesar/caesar.html Here is my code: #include…
-1
votes
1 answer

Using argc and argv in Caesar cipher in C

So, I am trying to use argc and argv in Caesars cipher in order to execute the program with just [./ key ;string] (e.g. ./ 13 Caesar). I have tried in lots of ways, although I must admit I am really lost here. I was thinking I should just use…
-1
votes
1 answer

I cannot add an offset to a char array, and is my method of receiving strings and ints from the command line optimal?

In the first for loop I am trying to add an offset to a char array and am not able to do so. I also wanted input from the terminal so I wrote code that is a ** to argv[2] and used atoi() to convert a char from argv[1] to an int. int main(int argc,…
Anthony O
  • 622
  • 7
  • 26
-1
votes
2 answers

How can I re-run my program in python

I would like to know how can I re-run this program. After succeful process I want to offer an opportunity to use this program again without closing and re-opeing. How can I do it? After run this code it just open window of python and instantly…
pandik70
  • 185
  • 1
  • 3
  • 9
-1
votes
1 answer

Encript and load file

Please, help me to find a mistake. I have a class file. I take a byte code of this class and encrypt it by Caesar cipher. I have several arguments of command prompt: class file: which we encrypt, class file: in which the output will transmit key:…
-1
votes
1 answer

File Reader and implementing it into a Cipher

I am pretty new to Java, kind of getting the hang of it, and am working on some code for a Caesar Cipher in my CS class. I have it able to read one line of code from a file and it can decrypt and encrypt just fine, but I think my teacher wants a…
-1
votes
1 answer

Computing - Python GCSE

I am currently trying to write a program, for school, in order to encrypt and decrypt a inputted message. My code currently works but it is not fully complete. I am having trouble trying to allow it to enter an offset from values from 2-26 and I am…
-1
votes
1 answer

Python caesar cipher A-Z capital only

Just need a suggest for my code as, I have my code at the moment so that it will work and just add 5 to the ASCII value, but what I need to know is how can I make this work for just moving 5 places along the alphabet e.g. now if I were to type Z I…
B. Filer
  • 5
  • 2
-1
votes
4 answers

java caesar cipher code

i did caesar cipher code by java it runs but doesnt encrypt anything after user enter the key ! here is my code public class CaesarCipher { public static final String ALPHABET = "abcdefghijklmnopqrstuvwxyz"; public static String…
user5892270
-1
votes
1 answer

Caesar Cipher Spacing Error

I am currently programming the Caesar Cipher. I created a list of the alphabets It simply asks for a sentence Gets the index position of each letter in the sentence in corresponding to the alphabet list, Adds the offset onto each offset using a…