Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
2answers
76 views

C++ Caesar cipher - follow-up

I asked another question the other day and decided to rewrite the code with some of the suggestions given and add functionality (instead of reading from a console I'm reading directly from a file) the ...
2
votes
0answers
34 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 ...
4
votes
1answer
43 views

Cracking Vigenere and Caesar Ciphered Text in Python

I have written a pair of programs in Python that can be used to encrypt, decrypt, and crack Caesar and Vigenere Ciphered text. I am fairly new to Python and I wrote these programs largely to try and ...
4
votes
3answers
59 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 ...
2
votes
1answer
87 views

Java => Caesar Cypher

I already asked for help in optimizing a simple Caesar Cypher code in java here : Cesar code in Java I tried to implement all the advice from that subject and now I am asking again. Do you have any ...
3
votes
2answers
48 views

Caesar Cipher encoding process (customizable input and shifting) in Python

So this code already works, but I would like to shorten it using list comprehension. Would it be better if it was in 1 line, or many? (I do know that readability is more important than short code, but ...
1
vote
3answers
145 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 : ...
3
votes
2answers
325 views

Simple one time pad cipher

I had this idea not to long ago on creating a secure chat for people who need to be not meddled with when talking (like whistleblowers, hackers, etc) talking to one of my friends about it he said I ...
1
vote
1answer
163 views

Caesar encryption and decryption

For a small project, I had to implement Caesar encryption in Swift(4). I'm mainly looking for performance optimizations. This whole code should be copy and pasteable in a playground and is ...
3
votes
2answers
195 views

Caesar Cipher in Haskell, on every other character

I'm learning Haskell, and I tried to do an exercise which it is an implementation of the Caesar Cipher method. The problem asks for cipher a text which it is in lower case and can contain characters ...
2
votes
1answer
109 views

Caesar Cipher improvement

Currently, I have this and it's working for all cases: ...
-1
votes
1answer
101 views

Decoding a string encoded by Caesar Cipher and some delimiters [closed]

I have the following code which I seek to optimize. The result of the bruteforce I already have but I'm just trying to learn some more python using the same example. The code in the data needs to be ...
1
vote
1answer
101 views

Caesar Cipher written in Python

I have written a simple Caesar Cipher in Python in my efforts to learn a language that isn't C. It works much like any other Caesar implementation and takes various command line arguments to specify ...
-4
votes
1answer
59 views

Caesar cipher in C. My plaintext won't shift and the cipher text outcome is identical to it [closed]

I'm not sure what I'm doing wrong yet, but while I continue to figure it out, I'd love to get some input from others w/ experience. The goal is to cipher the plaintext using a key provided at the ...
4
votes
2answers
2k views

Caesar Cipher in Python 3

I've implemented Caesar Cipher with two sample functions, Is my code readable I tried to make it understandable as I can , any comment is appreciated. I am planning to do a Vigenère Cipher soon. <...
2
votes
3answers
154 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 ...
7
votes
3answers
2k views

Simple Encryption for Strings

I have written this code for practice. Here we will enter the number by which we want to shift alphabets. For eg. Enter by how many numbers you want to shift alphabets: 4 Enter string: ...
6
votes
2answers
3k views

Basic shift cipher in Python

I am a bit new to Python. This is my first code review, and I am excited to get a critique on how to make this (very simple) shift cipher more Pythonic, cleaner, and more organized. ...
4
votes
1answer
366 views

Caesar cipher with key support

I'm toying around with a Caesar cipher that supports keys. The cool thing about it is that, unlike most Caesar ciphers you see, it works with byte arrays, not just strings, so you can encode text as ...
6
votes
2answers
197 views

Rot13 Unix Filter in C

I'm trying to brush up on some C basics (it's been ten years since I've programmed in C) and am working on a simple Rot13 program as a Unix filter. Any suggestions on how to improve it would be ...
4
votes
2answers
693 views

Caesar cipher encryption

I've been studying C++ (my first language) for about two months with books and Udemy courses. I would like some comments about my first real project that I put together for my teacher. ...
6
votes
1answer
131 views

CaesarsCipher Code Quality Concern

I have been following the FreeCodeCamp, and I am done with the basic algorithm challenges. The last one (CaesarsCipher) troubled me a bit, though I had done a similar one without much problem in C, ...
6
votes
1answer
620 views

Substitution Cipher Machine

Here is an attempt I made at a simple Substitution based cipher machine, it shifts input characters by an amount then returns an unreadable string which can then be decrypted back to its original self:...
5
votes
1answer
75 views

Alphabet cypher in Rust

This is my attempt at an alphabet cypher in Rust. I'm unsure if iteration and pushing to a mutable is the best way to handle building the output; it seems like a good candidate for a map but I can't ...
9
votes
2answers
148 views

Caesar cipher in i686 assembly + MMX

I have written the following implementation of the Caesar cipher for an old Linux computer with a Pentium MMX chip. The code has been written with the following design goals in mind: the code should ...
4
votes
1answer
220 views

Caesar Cipher in Haskell

I've come up with this simple implementation of the Caesar cipher. It takes an integer argument and a file to produce the cipher text like so: ...
4
votes
1answer
115 views

(Final)Simple Decryptor/Encryptor

This is my final version of my simpel Decrypter/Encryptor called Dencryptor. This is one of my first Python projects and I think it turned out pretty good. I am using a Caesar cipher right now and I ...
5
votes
2answers
339 views

Simple Decrypter/Encrypter

This is my first Python project I have written. It is a simple Encrypter/Decrypter. It has 4 commands: encrypt (tekst) - encrypts text and gives you a decryption key. key (key) - set the decryption ...
2
votes
2answers
343 views

ASCII encryption program in Python

I have recently written a program that reads information from a CSV file and puts it into lists. An encryption sub procedure converts the characters to ASCII, adds 2 then converts them back to ...
8
votes
2answers
1k views

Simple Caesar Cipher in Java

I am a recent beginner in Java and have attempted a simple Caesar cipher (using only lowercase): ...
3
votes
2answers
178 views

Caesar Cipher Cmd Tool

I know there are plenty of Caesar Cipher reviews on here, but I especially wanted to see how other programmers felt about my use of the cmd module and the efficiency of my functions. Though this ...
2
votes
1answer
130 views

HackerRank Caesar Cipher, not using map, filter, reduce, regex

Julius Caesar protected his confidential information by encrypting it in a cipher. Caesar's cipher rotated every letter in a string by a fixed number, K, making it ...
9
votes
3answers
2k views

Basic Caesar Cipher Code

Could I have a couple people look over my code for a general readability check? Just make sure it is following Python standards. ...
4
votes
1answer
518 views

ROT13 cipher challenge (HackerRank)

I just started learning Ruby and thought that this relatively simple HackerRank challenge would be a good opportunity to try to write clean, tested and documented code without getting bogged down in ...
-1
votes
2answers
87 views

Ciphering program based on quadratic function

I created my first ciphering program, which uses a quadratic equation as the encrypting algorithm. My goal was to make the code as minimalistic and readable as possible- what do you guys think? I am ...
15
votes
1answer
3k views

Caesar cipher in C

I've written a simple program that encrypt and decrypt a string using Caesar cipher. There are some examples to show how it works: ...
-2
votes
1answer
66 views
1
vote
1answer
393 views

Caesar cipher in go

I implemented the caesar cipher along with a writer/reader and a command line interface. ...
3
votes
1answer
902 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 ...
7
votes
2answers
1k views

Simple encoder by a beginner

I decided to make a quick little encoder in Python as a little challenge for myself. I decided to submit my program as I am very interested in improving my programming skills and learning better ways ...
3
votes
1answer
132 views

Caesar Cipher encrypt/decrypt tool

At the moment I'm learning Python and I made this script to workout my skills. Since it is one of my first programs I would love some feedback and tips, like more organization, less lines of code or ...
5
votes
2answers
4k views

Substitution Cipher in Python 3

I am fairly new to Python 3, and I was challenged to make a substitution cipher. I came up with a very bad way to do it, but I can't think of a better way to do it. ...
2
votes
1answer
551 views

Caesar Cipher with brute force

I am new to python. I wrote the following Caesar Cipher. Could someone help me to improve the code or make it shorter? Thanks in advance. PS. #COM is to make comments. ...
1
vote
1answer
428 views

ROT47 function implementation

According to Wikipedia, here below is the definition of the algorithm: ROT13 ("rotate by 13 places", sometimes hyphenated ROT-13) is a simple letter substitution cipher that replaces a letter with ...
4
votes
2answers
882 views

Python password generator based on the current month

I am relatively new to python and am trying to teach myself. I have created a python program that will take the current month's first three letters, and add one letter to the first, two to the second ...
7
votes
2answers
462 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 ...
3
votes
1answer
177 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 ...
5
votes
1answer
253 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 ...
6
votes
1answer
383 views

Caesar Cipher MVC implementation

I implemented the Caesar Cipher in Java, and I wanted to practice MVC. This is my model: ...
4
votes
2answers
2k views

Caesar Cipher implementation in Java

I wanted to create a class that encrypts provided clear text using Caesar Cipher. Do you find my implementation clean? Any suggestions? ...