Questions tagged [caesar-cipher]

A Caesar cipher is a trivial method to obfuscate text by substituting each character with it successor (or nth successor). Use this tag for questions involving a Caesar cipher or toy-grade ciphers of similar design.

Filter by
Sorted by
Tagged with
8
votes
2answers
491 views

Java implementation of the caesar-cipher

I've wrote a little program that encrypts text by using the caesar-cipher. Also it contains a little GUI, created by using swing. Here's the full code: ...
3
votes
1answer
82 views

follow-up - caesar-cipher - java

I now processed the suggestions you can find here. I've deleted some duplications and corrected some other minor mistakes. Here's the code: ...
25
votes
4answers
2k views

Translating from English to Entean

I wrote a python script that converts English to Entean language from an anime called "The Devil is a part timer". I am sloppy at coding and know that the script can be made better. In the anime, the ...
11
votes
4answers
3k views

ROT47 Implementation

ROT13 ("rotate by 13 places", sometimes hyphenated ROT-13) is a simple letter substitution cipher that replaces a letter with the letter 13 letters after it in the alphabet. ROT13 is a special case of ...
23
votes
5answers
4k views

Reading and writing data for Caesar cipher

I am struggling with commenting and variable naming. My teacher says my comments need to be more explanatory and explicit. He says my variable names are also sometimes confusing. I was just wondering ...
10
votes
2answers
603 views

Search for a Pythonic Caesar

Update I've posted a follow up question to this code. Find it here: Not a very interesting implementation of a Simple Substitution Cipher in Python. I implemented a second encryption algorithm: the ...
3
votes
2answers
3k views

Python Caesar Cipher

I am a student doing their AS Computing course and I have created a piece of code in which a message can be typed and then scrambled by moving letters along the alphabet. I was wondering if anyone ...
3
votes
3answers
201 views

English to Entean (V2) with maketrans

I wrote a python script that converts English to Entean language from an anime called "The Devil is a part timer". This is the second version of the script which was first posted here Translating ...
12
votes
2answers
3k views

How can I improve this Caesar encryption?

I have the following method which encrypts a english text, given the plain text and the desired key: ...
7
votes
3answers
7k views

Caesar cipher in Ruby

I must implement a simple Caesar cipher class. Initializer takes two parameters - number of positions to shift the alphabet (integer) and the alphabet used (as string, not necessarily the standard ...
7
votes
2answers
500 views

Caesar cipher in F#

I'm trying to broaden my horizon by learning functional programming (coming from OO, specficially C#). For this, I'm implementing some small problems to get a feeling for the language. One of my first ...
6
votes
3answers
1k views

Learning Ruby Caesar Cipher

I am trying to learn Ruby and made a simple Caesar cipher program and I was wondering if the following code follows the 'ruby way' or the way most ruby users would do it ...
5
votes
2answers
2k views

Simple Caesar Cipher C++

I was surprised to learn that there are not many C++ Caesar ciphers on Code Review (3 others as of this question). And none that work in this fashion. Here's the code: ...
5
votes
1answer
295 views

Caesar and Vigenère ciphers in Haskell the simple way

There are two ciphers, Caesar and Vigenère, both with an encoder and a decoder. Both work with spaces and can be passed any case (the output will be always lowercased, though). I'm a complete Haskell ...
4
votes
1answer
355 views

Application for encrypting and decrypting files in Java - follow-up

(Everything needed for running the app is here.) I have refactored my previous version a bit. App.java: ...
4
votes
3answers
1k views

Menu-based Caesar Cipher with encryption and decryption

I am about to start a very large project in Ruby. To get myself in the Ruby mindset I have been doing all of my homework and other side work in Ruby. I am hoping that some of you who know Ruby very ...
4
votes
3answers
87 views

Implementation, Ceaser Cipher in C++

I'm working on learning C++ coming from python. I'm doing some projects to help me out understanding the language a bit more. My code works I just want to know if there is anything that I can improve ...
4
votes
1answer
4k views

Application for encrypting and decrypting files in Java

(See the next iteration.) I have that application for en-/decrypting files. Here, I will post the actual GUI and command line code. In order to run the program refer to this GitHub repository. Some ...
3
votes
1answer
1k views

Basic Caesar Cipher in Swift 3.1

I have been learning Swift for the past day and thought I'd try a basic problem where I can do String manipulation. I am only on pg.100 of the Swift Programming Language on iBooks. Compared to python ...
3
votes
1answer
218 views

Caesar and Vigenère ciphers in Haskell, Take 2 (not so simple this time)

I've posted my simple ciphers on Code Review several days ago (link: here). I refactored my code and tried to define a more general "cipher" function, according to Zeta's excellent advice. I've split ...
2
votes
0answers
71 views

Not a very interesting implementation of a simple substitution cipher in Python

I know this has been done before, but I needed to brush up my Python skills. Also, I intend to publicly share this code on a blog post sometime in the near future. This is also an attempt to improve ...
2
votes
3answers
167 views

Link shortener application - return the “following” string

I'm working on developing an application to shorten links. Part of that requires me to be able to get the "next" string based on an allowed character ranges, as if we were counting up. Characters go ...
1
vote
3answers
296 views

Cesar code in Java

I am coding in java since some time but I was not always really organized about methods and commentaries, here is a quick code to use the Cesar code : ...
1
vote
0answers
483 views

Spring MVC web app for simple ciphers

I'm working on a simple Spring MVC web app that allows users to encrypt and decrypt messages with classical ciphers such as the shift or Caesar cipher. It also allows users to auto-decrypt a message ...