#interface #joke #algorithm #no-std #rot-26 #rot26 #algorithem

nightly rot26-rs

(Joke) no_std Implementation of thr ROT-26 algorithem with a C interface

3 releases

0.1.2 Nov 4, 2021
0.1.1 Nov 4, 2021
0.1.0 Nov 4, 2021

#1901 in Cryptography

25 downloads per month

MIT license

6KB

Contains (ELF exe/lib, 17KB) test

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

No runtime deps