ferric_crypto_lib 0.2.7

A library for Ferric Crypto
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Common internal utils
pub use crate::error::*;
pub use crate::utils::{decode_digit, decode_list, encode_char, encode_string};

/// Swedish alphabet with `å`, `ä`, `ö`, but without `w`.
///
/// The alphabet used for encoding and decoding.
///
/// `len = 28`
pub const ALPHABET: &str = "abcdefghijklmnopqrstuvxyzåäö";

lazy_static! {
    /// The length of the alphabet for ease of use.
    pub static ref ALPHABET_LEN: usize = ALPHABET.chars().count();
}