Crates.io | SadieFish |
lib.rs | SadieFish |
version | 0.1.1 |
source | src |
created_at | 2023-04-10 14:39:53.877048 |
updated_at | 2023-04-10 14:39:53.877048 |
description | A Rust cryptography library for educational purposes |
homepage | |
repository | https://github.com/AitSad/SadieFish |
max_upload_size | |
id | 835186 |
size | 22,622 |
SadieFish is a cryptography library written in Rust. It provides a set of encryption algorithms and utilities for use in applications that require secure data storage and transmission.
To use SadieFish in your Rust project, add the following to your Cargo.toml
file:
[dependencies]
SadieFish = { git = "https://github.com/AitSad/SadieFish" }
To use SadieFish in your Rust code, import the necessary modules:
use SadieFish::encryption::{caesar, vigenere};
use SadieFish::utils::{hex};
Then, call the desired encryption or utility function. For example, to encrypt a message using the Caesar cipher:
let message = "Hello, world!";
let key = 3;
let encrypted = caesar::encrypt(message, key);
println!("Encrypted message: {}", encrypted);