aesus 0.5.0

CLI for AES-256-GCM encryption using memorable passphrases
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::sync::OnceLock;

static WORDS: OnceLock<Vec<&'static str>> = OnceLock::new();

fn load_words() -> Vec<&'static str> {

    include_str!("diceware.txt")
        .lines()
        .filter(|l| !l.trim().is_empty())
        .collect()
}

pub fn get_words() -> &'static Vec<&'static str> {

    WORDS.get_or_init(load_words)
}