Skip to main content

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.

5 votes
1 answer
710 views

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 ...
michael.zech's user avatar
  • 5,044
4 votes
1 answer
446 views

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: ...
sbottingota's user avatar
  • 1,143
1 vote
3 answers
229 views

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. ...
Almezj's user avatar
  • 11
2 votes
1 answer
708 views

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 ...
Anarchotay's user avatar
8 votes
2 answers
1k views

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 ...
ntg_908's user avatar
  • 111
7 votes
2 answers
545 views

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. ...
s4vage's user avatar
  • 73
1 vote
3 answers
2k views

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. ...
Shoukat Hayat's user avatar
4 votes
1 answer
134 views

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 ...
xprtgmr456's user avatar
-1 votes
2 answers
113 views

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 ...
sznailc's user avatar
4 votes
1 answer
718 views

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 ...
Weezy's user avatar
  • 143
5 votes
4 answers
557 views

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, ...
Toby Speight's user avatar
  • 88.3k
5 votes
2 answers
2k views

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 ...
singhsokhal's user avatar
2 votes
1 answer
115 views

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: ...
TimeTravelPenguin's user avatar
6 votes
1 answer
387 views

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. ...
Egg-Fault's user avatar
5 votes
2 answers
130 views

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. ...
chaim8's user avatar
  • 51

15 30 50 per page
1
2 3 4 5
13