csr 0.6.1

csr is a library for encrypting and decrypting many types using caesar cipher. This shouldn't be used for any serious security but was more of an exercise in generics and creating a rust crate.
Documentation

caesar-rs

This is a library that provides encryption and decryption for the caesar cipher.

WARNING: OBVIOUSLY NOT CRYPTOGRAPHICALLY SECURE

Usage

use caesar::Caesar;

fn main() {
    // the key or "shift"
    let key: u8 = 2;
    let caesar = Caesar::new(2);

    let input = "Hello world!";

    assert_eq!(caesar.encrypt(input), "Jgnnq yqtnf!".to_string());
}