csr

Crates.iocsr
lib.rscsr
version0.8.2
sourcesrc
created_at2020-02-01 04:17:04.471332
updated_at2020-03-27 06:12:09.073761
descriptioncsr 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.
homepagehttps://git.cryptid.cc/lost/csr
repositoryhttps://git.cryptid.cc/lost/csr
max_upload_size
id203834
size21,056
Brandon (xa888s)

documentation

https://docs.rs/csr

README

csr

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

docs.rs

WARNING: OBVIOUSLY NOT CRYPTOGRAPHICALLY SECURE

Usage

use csr::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!");
}
Commit count: 0

cargo fmt