Crates.io | rot26-rs |
lib.rs | rot26-rs |
version | 0.1.2 |
source | src |
created_at | 2021-11-04 14:44:39.107975 |
updated_at | 2021-11-04 14:59:19.146851 |
description | (Joke) no_std Implementation of thr ROT-26 algorithem with a C interface |
homepage | |
repository | https://github.com/caverym/rot26-rs |
max_upload_size | |
id | 476678 |
size | 22,731 |
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.
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);
}
...
#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;
}
...
#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;
}