added database stuff

added clap arguments
added the gen_or_get_key func in lib
git ignore for .env
migrations
This commit is contained in:
2026-07-13 17:41:29 -05:00
parent 04c57f15f8
commit c64ed1be4e
15 changed files with 527 additions and 5 deletions
+5 -2
View File
@@ -1,11 +1,14 @@
use chacha20poly1305::{
ChaCha20Poly1305, Key, Nonce,
ChaCha20Poly1305,
aead::{Aead, Generate, KeyInit},
};
type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
mod helper {
pub type Key = chacha20poly1305::Key;
pub type Nonce = chacha20poly1305::Nonce;
pub mod helper {
use super::{Generate, Key, Nonce};
pub fn gen_nonce() -> Nonce {
Nonce::generate()