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.
183 questions
4votes
1answer
697views
Caesar Cipher in Swift (iOS-app)
I have implemented the Caesar Cipher in Swift and incorporated it into an iOS-app. I guess it's formally correct. Please see the attached images, which show how the usage of the app is meant. Here's ...
4votes
1answer
428views
Simple encryption/decryption program using python (and tkinter)
I am creating a simple program with a GUI to encrypt/decrypt text using different ciphers. I tried to make it so that it would be easy to add new ciphers. This is my code: ...
1vote
3answers
187views
Caesar cipher - Encode text from external file using HashMap Java
This is one of my school assignments and I just wanted to ask if there are some obvious mistakes or things I could maybe improve in this code. Thank you for any suggestions. ...
2votes
1answer
690views
Just finished CS50's "Caesar" - How can I make it better?
How can I improve this code? I wanted to have a separate method for "isdigit" but when I tried making it, I kept getting the error: "non-void function does not return a value in all ...
8votes
2answers
1kviews
ROT13 encryption using array indexing
This is a basic rot13 encryption program. I'm just looking for a general review, any feedback, or any optimization of what I wrote today as practice. I know that I need to not rely on indexes as I do ...
7votes
2answers
508views
caesar cipher decoder and encoder - go
I implemented my first algorithm in golang - the caesar cipher. Is there something i could do more efficiently? I am quite new to go and any improvement suggestions are welcome. ...
1vote
3answers
2kviews
Shift characters (A-Z) in a string by 5 places
There are no syntax errors in this code, and so improvements could be in the areas of performance, maintainability, and usability. ...
4votes
1answer
123views
Caesar encrypt / decrypt objects
I have created some object-oriented program for Caesar encryption. Could you please check if I have done anything wrong or how I can improve this? This is for my school assignment on coding and I ...
-1votes
2answers
81views
Caesar's cipher decoder works but Valgrind shows many errors [closed]
The program is a Caesar's cipher decoder. It compiles and works ok, but in Valgrind, I receive a lot of errors and I have no idea how to solve them. I have tried with --track-origins=yes, but I still ...
2votes
1answer
703views
A character shift function in Rust
As you might probably know, a Caesar cipher involves shifting/unshifting and wrapping up characters when they overflow the first or last letter of the alphabet, it's useful to have a function to just ...
4votes
4answers
498views
Portable and efficient Caesar cipher
Implementation of a Caesar cipher is a popular exercise and there are many implementations posted here on Code Review. My version is intended to be efficient and portable (subject to some limitations, ...
5votes
2answers
2kviews
Caesar cipher using Python
I am just beginning to learn Python, this is my own take on a Caesar cipher just looking at Python docs. I would like to know how I could have made it better and how would you rate this. Is it any ...
2votes
1answer
102views
F# simple monoalphabetic cipher code implementation
I am a new F# programmer, and a student in a security class. As part of my notes, I wrote a small implementation of a monoalphabetic cipher as follows: ...
6votes
1answer
371views
Caesar cipher/beginnings of a crypto library in Rust
As a hobby project (and to learn the language), I'm working on a crypto library in Rust. The following is a component thereof, which implements encryption with and the cracking of the Caesar cipher. ...
5votes
2answers
119views
A caesar cipher code
This is code for a caesar cipher that I wrote, I would love for anyone who can to offer any improvements/corrections/more efficient methods they can think of. Thanks. ...