rot26-rs

Crates.iorot26-rs
lib.rsrot26-rs
version0.1.2
sourcesrc
created_at2021-11-04 14:44:39.107975
updated_at2021-11-04 14:59:19.146851
description(Joke) no_std Implementation of thr ROT-26 algorithem with a C interface
homepage
repositoryhttps://github.com/caverym/rot26-rs
max_upload_size
id476678
size22,731
Avery Murray (caverym)

documentation

README

ROT-26-rs

ROT-26 algorithm implemented in Rust with a C interface

Instead of only rotating 13 places, ROT26 rotates twice as many characters in the alphabet and is therefore twice as secure.

Examples

Rust

fn main() {
    let super_secret_data = get_password();
    let super_secret_data_encrypted = rot26_rs::cipher(super_secret_data);
    
    let super_secret_data = rot26::decipher(super_secret_data_encrypted);
}

C

...
#include <rot26.h>

int
main
(
    void
)
{
    const char *super_secret_data = get_password();
    const char *super_secret_data_encrypted = rot26_cipher(super_secret_data);
    
    const char *super_secret_data_deciphered = rot26_decipher(super_secret_data_encrypted);
    return 0;
}

C

...
#include <rot26>

int
main
(
    void
)
{
    const char *super_secret_data = get_password();
    const char *super_secret_data_encrypted = rot26_cipher(super_secret_data);
    
    const char *super_secret_data_deciphered = rot26_decipher(super_secret_data_encrypted);
    return 0;
}
Commit count: 5

cargo fmt