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
2 answers

Caesar Cipher python with alphabet input

I'm a beginner in python and taking a course on it. I've been tasked with making a caesar cipher where I can input the alphabet used. For this I can't use ord() or list() or any imported functions, only basic python. I've got it to work for one…
808Blues
  • 87
  • 1
  • 4
2
votes
2 answers

My program runs correctly while debugging, but incorrectly when out of debugging

I'm currently in the middle of writing a simple program in C that takes a command line argument from the user that is a substitution cipher key. Currently, my program is checking for all the possible incorrect arguments the user might enter. Running…
bmorozov
  • 41
  • 4
2
votes
2 answers

I try to build ROT 13 cipher in JavaScript, I did it but output not shown in console please check what's wrong in it

A common modern use is a ROT13 cipher, where the values of the letters are shifted by 13 places. Thus 'A' ↔ 'N', 'B' ↔ 'O', and so on. function rot13(str) { let newStr=""; let…
2
votes
3 answers

How can I use English language letter frequencies in my Caesar Cipher deciphering assignment?

I have an assignment to create a program that can decipher a Caesar Cipher that the user enters. The teacher provided us with a helper function: double letterScore(char ch){ if (ch == 'A' || ch == 'a') return .0684; if (ch == 'B' || ch ==…
Rahiz Khan
  • 33
  • 5
2
votes
1 answer

Decryption and encryption algoritms funky

I made a little script for custom encryption and decryption algorithms, which are based on Caesar cipher and transcription cipher. First a little bit of background for explanation on how it should work. Assume a message you want to encrypt before…
Polda18
  • 162
  • 14
2
votes
2 answers

How to wrap around alphabetically z to a and Z to A after shifting each letter by a number of places?

I am working on a code in which I shift each letter by one place, so (a) becomes (b) and (b) becomes (c) and so on. So far I managed to do that, but I am confronting a problem wrapping around the capital letter (Z) to (A). I can't seem to get the…
Bryce
  • 71
  • 8
2
votes
1 answer

Turing Machine and Ciphers

I am looking into Turing machines and am trying to work out how I could describe some basic cryptography algorithms (Caesar cipher for example) using Turing machines. Consider: F={x#y|x,y∈{a,b,c,d,e,f}∗,y is equal to x with a Caesar shift of…
user6089076
2
votes
0 answers

Caesar Cypher Python using RAD software

So currently I am working on a Caesar cypher app, my code looks like this (coded by RAD software https://anvil.works/) The problem is that I don't get any output when I try to run the program and I think that it could be self.text_area_2 =…
2
votes
2 answers

CS50 Caesar program is working but check50 says it isn't

I created this program but I'm getting errors on CS50 showing that I didn't do any of it correctly. The requirements are as follows: Implement your program in a file called caesar.c in a directory called caesar. Your program must accept a single…
2
votes
3 answers

Struggling with ASCII Loop for Caesar Cipher

This is my first question posted to stackoverflow, any and all help/critique/assistance is appreciated...I need all the help I can get haha. I am very new to programming. The aim is to create a Caesar cipher that encrypts and decrypts user string…
Steven Hale
  • 206
  • 3
  • 15
2
votes
2 answers

Checking for symbols and upper/lower-case for encrypting with ceasar cipher?

I tried for several hours to make a simple ceasar cipher encryption programm. It finally works. But it is only able to encrypt text without spaces and symbols. I have no idea how to implement a checking part for these things into the code. Critics…
Tom E.
  • 25
  • 3
2
votes
0 answers

Not getting output to file

Im trying to make a program that takes input and saves it to a file. Afterwards, I'd like for the information that's in the document to be encrypted using caesar shift with 6 shifts. Then I'd like to have a decrypt program where I decrypt the file…
2
votes
1 answer

How to advance string 3 letters in the alphabet (Caesar cipher)?

I'm trying to make a program that encrypts a string the user submits. I want to use an encryption technique where the string is advanced 3 letters in the alphabet. Example: abc would become def. Currently I have a TextBox (TextBox1) and a Button…
user10657237
2
votes
1 answer

Caesar Cipher Negative Numbers Issue

I'm trying to write a caesar cipher program that takes an argument, converts it into an integer, and uses that as to shift the letters in a certain direction (positive numbers shift it forward and negative numbers shift it backwards. So far all the…
2
votes
1 answer

Caesar cipher seeded from previous (shifted) character

For fun, I am trying to run a caesar cipher on a string where each character is shifted by the previous character in the string. The initial character is obviously not shifted and used to shift the second, the second character is used as the seed…
Doug Miller
  • 1,316
  • 4
  • 24
  • 46
1 2
3
52 53