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
-2
votes
1 answer

Caesar Cipher Decryption Method With White Space

I am working on a caesar cipher program as my final project in java I. I have a method for the encryption that handles lower and uppercase characters. However I have hit a wall trying to adjust the algorithm to work the shift factor in the opposite…
jeb
  • 17
  • 3
-2
votes
1 answer

Attempting to write a Caesar Cipher program - I am having a problem with the encryption method. [Java]

So for school I have to write a program that implements a Caesar Cipher. I was doing this and it was going well, however, the encryption method itself is not working out how I planned. For example, let's say we're going to encrypt the string…
-2
votes
1 answer

Searching item in a table in haskell

I am currently working in an exercise to make a caesar cipher, but for to finish that i need to find items in a table. It's a table which is offset to right by 3 elements. There is my table: table :: [(Char, Char)] table = zip ['a'..'z']…
-2
votes
1 answer

Caesar Shift Decoder in python

I can't figure out what I'm doing wrong here. The shift works flawlessly excpet for it skips the first letter in the cipher code. What gives? It should translate to WELCOMETOCRYPTOGRAPHY but does ELCOME.... cipher = 'ZGXJHZOJXMTKOJBMVKCT' …
Madou D
  • 17
  • 1
-2
votes
2 answers

Caesar Cipher solver in Python

I have made a caesar cipher solver in python, but there are no errors, it's just not printing anything. I have done similar things, but this hasn't happened before. with…
Rohit Jose
  • 209
  • 1
  • 9
-2
votes
2 answers

Ruby Caesar Cipher not changing the word

I'm creating a caesar cipher in Ruby based on the code from Rosetta Code, but my code only prints the original word, rather than the modified word. Here's my code: class String ALPHABET = ("A".."Z").to_a def caesar_cipher(num) …
-2
votes
2 answers

C - Caesar Cipher [Moving Code to Function]

I am totally new to C programming language, so don't be too critical about my code. I found some tutorials to make Caesar Cipher encryption and decryption program, I just would like to run it from the CLI. I have code, but it uses global variables…
-2
votes
1 answer

Tkinter GUI for caesar cipher doesn't work as intended

I made a tkinter GUI for the caesar cipher program but it doesn't work properly. I type my message in the first entry box, enter the key in the second one, then click encrypt/decrypt, and the result shows up in the third entry box. But i never get…
-2
votes
1 answer

CS50 PSET 2 Caesar Erroneous Results

Thought I had completed Caesar, but when running CHeck50, my code fails for this reason: encrypts "barfoo" as "yxocll" using 23 as key output not valid ASCII text Log running ./caesar 23... sending input barfoo... checking for output "ciphertext:…
Shaun
  • 3
  • 3
-2
votes
1 answer

Solve Caesers Cipher Using a switch code in Javascript

You may be familiar with caeser cipher(see this wiki on caesers cipher AKA ROT13) I have been looking at solutions for the cipher but I do not see anyone using a switch statement. Given the challenge (see below), can this problem be simply solved…
Dr.Apell
  • 131
  • 9
-2
votes
1 answer

"Debug Assertion Failed!" issue in a Caesar Cipher program

Hello! Currently creating a program in C++ which purpose is to encrypt a phrase with a Caesar Cipher and cannot figure out what the issue is here after several tries of debugging in Microsoft Visual Studio 2017 Community. Problem reference…
-2
votes
1 answer

Ceasar Cipher method of decryption isn't working and is printing nothing

I am very new to programming and can't figure out the issue with my Cesar cipher my method for encryption works fine but my method for decryption is not working. Main class package com.company; import java.util.Scanner; public class Main { …
Jake77
  • 1
-2
votes
1 answer

Caesar cipher without knowing the Key

Hey guys if you look at my code below you will be able to see that i was able to create a program that can open a file decode the content of the file and save it into another file but i need to input the key every time but what if i don't know they…
-2
votes
3 answers

Caesar Cipher Code Python printing on separate lines

The code below works fine, however the message prints onto separate lines once it has been encrypted. For example if I type: abc with the shift of 1 it encrypts it but prints it back as: b c d And I don't understand why. I want it to print as: bcd…
Sam.Natale
  • 50
  • 1
  • 1
  • 9
-2
votes
1 answer

Checking "encryption" and "decryption" of Caesar Cipher using strings in python

I was supposed to create strings in my python function to show that the encryption and decryption of my code was working properly. Below is my code. def encrypt1(): plain1 = input('Enter plain text message: ') cipher = '' for each in…