cipher-crypt

Crates.iocipher-crypt
lib.rscipher-crypt
version0.18.0
sourcesrc
created_at2017-06-28 04:04:40.262225
updated_at2019-10-03 09:59:33.444812
descriptionA cryptographic tomb of ciphers forgotten by time.
homepagehttps://github.com/arosspope/cipher-crypt.git
repositoryhttps://github.com/arosspope/cipher-crypt.git
max_upload_size
id21066
size166,081
Andrew Pope (arosspope)

documentation

https://docs.rs/cipher-crypt/

README

Cipher-crypt

Crates.io Documentation Build Status

A library of historic cryptographic algorithms implemented in rust.

Usage

Importing this crypt of ciphers is as easy as adding the following to your Cargo.toml:

[dependencies]
cipher-crypt = "^0.16"

Using the crate as such:

extern crate cipher_crypt;

use cipher_crypt::{Cipher, Caesar};

fn main(){
  let m2 = "Attack at dawn 🗡️";
  let c = Caesar::new(3);
  assert_eq!(m2, c.decrypt(&c.encrypt(m2).unwrap()).unwrap());
}

Ciphers

The crypt only contains a few ciphers, but with time (and your help) it will have even more! A list of what is planned for the future and what is currently implemented is as follows.

  • ADFGVX
  • Affine
  • Autokey
  • Baconian
  • Caesar
  • Columnar Transposition
  • Fractionated Morse
  • Hill
  • Playfair
  • Polybius Square
  • Porta
  • Rail-fence
  • ROT13
  • Scytale
  • Vigenère
  • Bifid
  • Four-Square
  • Homophonic
  • Straddle Checkerboard
  • Trifid

Contributions

Contributions are extremely welcome. A good place to start would be helping to implement new algorithms. General cleanup and improvements of the code would also be greatly appreciated.

Disclaimer

There's a reason these archaic methods are no longer used - its because they are extremely easy to crack! Intended for learning purposes only, these ciphers should not be used to encrypt data of any real value.

Commit count: 70

cargo fmt