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
1
vote
1answer
40 views

Caesar Cipher, done in Ruby

It's an assignment from the Odin Project. Here's my implementation: ...
3
votes
2answers
186 views

Caesar-Cipher Implementation

Background I am a total beginner in Haskell, so after reading the Starting out-chapter of "Learn you a Haskell", I wanted to create my first program that actually does something. I decided to do the ...
10
votes
2answers
1k views

Perform a Caesar Cipher Shift on a given string

I'd like feedback on my solution to the outlined programming challenge (medium level). I've tried it fast in any way I know how to, but, what might be a more efficient and/or pythonic solution? [...
3
votes
2answers
456 views

Caesar-Cipher - 2nd follow-up

I've now used the tips, you can find here and there, to improve my code: ...
3
votes
1answer
103 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: ...
8
votes
2answers
542 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: ...
8
votes
4answers
1k views

Caesar cipher implementation in C++

I've implemented a Caesar cipher in C++ and would like for you to review it. It works as expected, at least with the inputs I've tried. Feel free to suggest improvements, warn about bad practices or ...
13
votes
2answers
3k views

A Caesar cipher in Python3

This code basically just does a Caesar cipher on the contents of the variable "s" with a shift of 1. Sorry if the comments on the code don't explain it well. I'm quite new to Python and I'm not very ...
2
votes
2answers
75 views

Caesar Cypher Implementation

I am learning C# and for an experiment I tried implementing the Caesar Cypher cryptography method which just offsets every character of the string n characters. How can I make this simple program ...
5
votes
1answer
159 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
122 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
127 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
114 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
734 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
172 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
97 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 ...
5
votes
1answer
1k 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
96 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
151 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
111 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
338 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
1k 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
397 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
566 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
122 views

Caesar Cipher improvement

Currently, I have this and it's working for all cases: ...
-1
votes
1answer
164 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 ...
2
votes
1answer
264 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
84 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
3k 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
174 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
5k 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
8k 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
551 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
257 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
1k 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
133 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
984 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:...
6
votes
1answer
96 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
221 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
418 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
119 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
410 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
588 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
2k 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
251 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
189 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
3k 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. ...
5
votes
1answer
724 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
89 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 ...