#encryption #hex #aes #caesar #utilities #message

SadieFish

A Rust cryptography library for educational purposes

1 unstable release

0.1.1 Apr 10, 2023

#2125 in Cryptography

MIT license

17KB
386 lines

SadieFish

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.

Features

  • Caesar cipher
  • Vigenère cipher
  • Advanced Encryption Standard (AES) [Pending]
  • Data Encryption Standard (DES) [Pending]
  • Base64 encoding/decoding [Pending]
  • Hexadecimal encoding/decoding

Installation

To use SadieFish in your Rust project, add the following to your Cargo.toml file:

[dependencies]
SadieFish = { git = "https://github.com/AitSad/SadieFish" }

Usage

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);

Dependencies

~0.8–4MB
~86K SLoC