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
5
votes
1answer
94 views

Plain-text file encryption and decryption

I have created an Encryption and Decryption Algorithm that encrypts plain text using a given cipher and also decrypts it back to the original notation. It works great. This was my code for a coding ...
3
votes
1answer
66 views

Caesar Cypher guessing game

Caeser's cipher code where there are a converter and a game part with user input. The code includes keys (settable and not settable). ...
5
votes
1answer
107 views

Java program to encrypt/decrypt text

I am working on adding a GUI to the project that I was making in some course. I am curious if the layout looks good, if there variables and methods are shared properly between particular classes, if ...
2
votes
2answers
70 views

Caesar Cipher Guesser

I've written a Caesar Cipher in python (a more in-depth explanation is provided in the docstring at the top of the program). At first, it was supposed to just be the cipher, but I expanded it to have ...
8
votes
2answers
1k views

ROT13 encoder/decoder

This is a simple utility, intended to sit on the desktop for when needed, that does the simple ROT13 encoding and decoding. I am used to coding in VBA, and I am interested in more .Net idiomatic ...
4
votes
3answers
665 views

Classic cryptography toolbox: Caesar, Vigenere and ADFGVX ciphers

I wrote a program in haskell that aims to let the user encrypt, decrypt and crack/cryptanalyse pre-electromechanical era ciphers in Haskell. I want to know your opinion on it since this is my first ...
2
votes
2answers
107 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
47 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
179 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
69 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
108 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
59 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
204 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
507 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
228 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
266 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
114 views

Caesar Cipher improvement

Currently, I have this and it's working for all cases: ...
-1
votes
1answer
131 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
132 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
73 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
160 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
3k 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
4k 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
435 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
216 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
798 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
132 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
758 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
81 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
172 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
254 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
116 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
373 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
398 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
197 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
156 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
605 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
88 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

Memory allocation in Caesar cipher

...
1
vote
1answer
557 views

Caesar cipher in go

I implemented the caesar cipher along with a writer/reader and a command line interface. ...
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 ...
7
votes
2answers
2k 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
136 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
618 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
484 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 ...