cryptan 0.4.2

A simple crypto playground (Caesar, Morse, ...).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::DecodedResult;

pub trait ClassicalCipher {
    fn encrypt(&self, input: &str) -> String;
    fn decrypt(&self, input: &str) -> String;
}

pub trait BruteForce {
    fn bruteforce(&mut self, input: &str, threshold: Option<f32>) -> Vec<DecodedResult>;
}

pub trait Codec {
    fn encode(&self, input: &str) -> String;
    fn decode(&self, input: &str) -> String;
}