The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [vigenere-cipher]

A polyalphabetic substitution cipher that is a variant of the Caesar cipher.

Filter by
Sorted by
Tagged with
17
votes
4answers
17k views

Vigenere encryption

Can someone please critique my C++ sample here? ...
12
votes
2answers
480 views

Vigenère Cipher in Haskell

I wrote a Vigenere cipher in Haskell, but I feel like I way overdid it. This is the second version of the program that allows custom cipher tables, removing the limit of just having letters from A to ...
10
votes
3answers
2k views

Vigenère Cipher in Python, how secure is this?

The program starts of with the password() function first, which gets the keyword or key that you want to shift your string with. Then you go into the choice() option, where you can either encrypt() or ...
9
votes
1answer
1k views

Vigenere Decypher in C++

I've written a Vigenere decypher and I would like to have some opinions before I try to refactor it into more OOP style with classes and such. ...
8
votes
2answers
3k views

Vigenère cipher in Python

Over the last year I have been programming on my own, mostly in Python. I haven't had any formal education, though I have followed some online instructions, and have been making things that interest ...
7
votes
2answers
562 views

Encrypter - Double Vigenere Cipher in Python

I wrote this encrypter based on the idea of a Vigenere cipher, but instead of using only one key, it "makes" another key from the existing key. The length of the second key also depends on the ...
7
votes
1answer
536 views

Vigenere cipher in Haskell

I implemented the Vigenere cipher in haskell as a part of exercises for Haskell programming from first principles. Though the code isn't all that long, I feel it could use some refactoring to ...
6
votes
3answers
910 views

Cryptoanalysis of Vigenere-ciphered text with Kasiski test

I am creating a program that will analyse encrypted text using Kasiski examination in order to find possible key length: ...
6
votes
2answers
2k views

Vigenere Cipher - make code more concise?

I'm a beginner in programming overall, started about a month ago and so I'm still trying to fully grasph the concept of OOP, for instance. Here I used a class for the encryption and decryption ...
5
votes
3answers
1k views

Brute-force Vigenere Cipher using multiple threads

I'm trying to brute force a Vigenere Cipher knowing only that the key length is 5+ characters and that the decrypted text has the word ...
5
votes
2answers
74 views

Vigenère cipher in Ruby

What I'm trying to do: implement the Vigenère cipher in Ruby. I already have a working version, but I want to make sure it is efficient and well-designed. ...
5
votes
2answers
690 views

Vigenere cipher breaker

I am a relative newbie to C++. I recently finished a command line program which cracks Vigenere encoded messages from a file by testing each word in the dictionary. I have never had a tutor/teacher ...
5
votes
1answer
275 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 ...
4
votes
2answers
539 views

CS50 Vigenere program

I wrote a program for a problem in Harvard's CS50 course, Vigenere (week 2). Here is a description of what the program needs to do: Design and implement a program that encrypts messages using ...
4
votes
1answer
4k views

Vigenère cipher in C

For my second major project in C, I decided to write an implementation of the Vigenère cipher in C. My program uses command line options (optarg) and can read from both a file or from a string ...
4
votes
3answers
668 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 ...
4
votes
1answer
211 views

Vigenere Cipher - Haskell Implementation

I'm reading 'Haskell Programming from First Principles' book written by Christopher Allen and Julie Moronuki. As part of the exercises, I'm supposed to implement encryption and decryption functions ...
4
votes
1answer
267 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
1answer
655 views

Playing around with Vigenere and Caesar cipher - Java command line encryption program

I came along these two ciphers in my cryptography book and though I'd implement them just for fun. After that I went on developing a cipher based on these two that minimize the weakness of each cipher ...
4
votes
2answers
153 views

Vigenère cipher 2

The following program is an updated version of this question, an implementation of the Vigenere cipher in C. It has been updated to take input from stdin and pipes, ...
4
votes
2answers
1k views

Vigenere's Cipher in C

I have updated the code and the program now works as it should. If you could critique my code that would be great. I am new to C so I guess I will have made some rookie error :) ...
4
votes
1answer
236 views

Vigenère cipher encryption in Scala

I've worked out a functioning Vigenère encryption in Scala, and while it doesn't seem like my code is too hideous, I'm sure I could make it more functional and Scala-esque. Primarily, it seems like: ...
4
votes
1answer
387 views

Vigenere cipher with random salt

EDIT: I've created a repo and uploaded it to Maven (still in dev though). Any suggestion or pull request is more than appreciated. :) https://github.com/enrichman/vigenere I had the need to write a ...
4
votes
1answer
110 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 ...
3
votes
2answers
177 views

Vigenere cipher exercise in Haskell

This is my implementation using the dreadful !!: ...
3
votes
2answers
3k views

Vigenere square cypher decryption

I'm in the process of learning python and programmed this exercise in decrypting the Vigenere square cypher as practice. Please comment on best practices, efficiency, or more pythonic ways to do ...
3
votes
1answer
4k views

Defining functions in Vigenere cipher

I'm trying to learn the process of defining/calling a (somewhat) complex function. I understand the main idea, and can do it on a small (simple) scale. A simple example: ...
3
votes
1answer
198 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 ...
3
votes
1answer
82 views

Program based on Vigenère’s cipher

I would like to get some helpful thoughts on this and if there is a way to break it. Is there any point to not use fgets in that form? ...
2
votes
3answers
368 views

Vigenere encryption assignment for CS50 C course

My third week on cs50 and looking for some feedback on the general tidyness and style of my code. I took a look at other peoples code after I was done with this and I guess I could've implemented some ...
2
votes
1answer
14k views

Encryption and decryption using alphabetic shifts

My first piece of code encrypts text by moving each letter in the string 5 letters across in the alphabet. ...
2
votes
1answer
95 views

C Vigenere Encryptor

This code is tested and working properly, I'm looking for some feedback on the following functions. Pretty straight forward and simple, but if additional information is desired, ask and I will gladly ...
2
votes
1answer
636 views

Vigenere Cipher encryption and decryption

I wanted to make some simple functions that would be used in the encryption and decryption using a Vigenere square. ...
2
votes
1answer
3k views

A small custom encryption / decryption script

I have made a small script for encrypting data. Now I'm wondering how efficient it is for normal users who aren't programmers and for people who are programmers. I mean if you don't have this script ...
2
votes
1answer
149 views

Vigenère cipher as an IO filter

I implemented a Vigenere encoding and decoding class. Ideally, the program should be able to take any abritrary file, read into an array of byte, and decode it. ...
2
votes
1answer
108 views

Vigenère decoder/encoder in Python (using matrix)

I made an encoder/decoder for the Vigenère cipher. This one is using a table, not the remainder technique. Please let me know what you think can be done to improve performance, etc. ...
2
votes
1answer
1k views

Vigenere Cipher in C

I'm going through CS50 and one of the problem sets was to implement a vigenere cipher. I have had some previous classroom experience with C before CS50, but still consider myself a beginner. The ...
1
vote
0answers
682 views

Vanilla JS Vigenere Cypher Decoder

Example: JSFiddle Questions Supposedly there's an issue with using ^ in a regex statement. Is that always the case or is it acceptable to use as I have here? Should I include a validation to ensure ...
0
votes
1answer
97 views

CS50 Vigenere Cipher

...