Vigenere Cipher

Encrypt and decrypt messages and files
Download

Vigenere Cipher Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • JBO Software
  • Operating Systems:
  • Windows All
  • File Size:
  • 958 KB

Vigenere Cipher Tags


Vigenere Cipher Description

The Vigenere Cipher was developed to be an old cryptographic system, which offers very little security, but is interesting to analyse. This program allows you to encrypt and decrypt messages and files using the original form of the cipher, which only handles capital letters. It also has a facility to try to decode a ciphertext with unknown key, which is usually successful, within some limits. The "save document with password" function in some desktop applications use the Vigenere cipher, slightly modified to handle all bytes rather than just capital letters (by using XOR), but having the same vulnerabilities. Main features: The general idea is to make the code look as if it were written in a functional language, like ML. This isn't rigorously enforced though, e.g. loops are used instead of deep recursion. Errors are handled by calling vig_error as soon as the error is detected. This uses setjmp/longjmp to escape back to the main menu, so there's no null return codes to worry about. vig_malloc is used instead of malloc. This keeps track of allocated memory, so calling vig_freeall frees everything. Functional style low-level routines are written, e.g. vig_loadfile takes a file name and loads it into newly allocated memory. For portability, size and endianness of data types doesn't matter, and only POSIX system calls are used. The program assumes at least an 80 x 25 character terminal. Global variables are avoided, except where necessary in low level functions, e.g. storing the stack environment for error handling. Function names all have the prefix vig_.


Vigenere Cipher Related Software