my_encryption_lib 0.1.0

A library for various encryption and decryption algorithms.
Documentation
// Import the `mel` function from the `mel` module.
use super::mel::mel;

/// Encrypts or decrypts the given line using a shift of 1.
/// 
/// # Arguments
/// * `line` - The string to be encrypted or decrypted.
/// * `encrypt` - A boolean flag to specify encryption (true) or decryption (false).
/// 
/// # Returns
/// Returns a `Result` with either the encrypted/decrypted string or an error.
pub fn mel_1(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 1, encrypt)
}

// The following functions `mel_2` to `mel_25` are similar to `mel_1`, but
// they use different shift values from 2 to 25, respectively.
// Each function encrypts or decrypts the input string with a specific shift value.

pub fn mel_2(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 2, encrypt)
}

pub fn mel_3(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 3, encrypt)
}

pub fn mel_4(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 4, encrypt)
}

pub fn mel_5(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 5, encrypt)
}

pub fn mel_6(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 6, encrypt)
}

pub fn mel_7(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 7, encrypt)
}

pub fn mel_8(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 8, encrypt)
}

pub fn mel_9(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 9, encrypt)
}

pub fn mel_10(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 10, encrypt)
}

pub fn mel_11(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 11, encrypt)
}

pub fn mel_12(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 12, encrypt)
}

pub fn mel_13(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 13, encrypt)
}

pub fn mel_14(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 14, encrypt)
}

pub fn mel_15(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 15, encrypt)
}

pub fn mel_16(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 16, encrypt)
}

pub fn mel_17(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 17, encrypt)
}

pub fn mel_18(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 18, encrypt)
}

pub fn mel_19(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 19, encrypt)
}

pub fn mel_20(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 20, encrypt)
}

pub fn mel_21(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 21, encrypt)
}

pub fn mel_22(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 22, encrypt)
}

pub fn mel_23(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 23, encrypt)
}

pub fn mel_24(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 24, encrypt)
}

pub fn mel_25(line: &str, encrypt: bool) -> Result<String, &'static str> {
    mel(line, 25, encrypt)
}