geekorm_core/utils/mod.rs
1//! The Utility module
2//!
3//! This is where all the utility functions are defined for the GeekORM crate.
4//! There are several utility functions that are used in the crate.
5//!
6//! - Cryptography
7//! - `generate_random_string` - Generate a random string
8//! - `generate_hash` - Generate a hash
9//!
10
11pub mod crypto;
12#[cfg(feature = "two-factor-auth")]
13pub mod tfa;
14
15#[cfg(feature = "hash")]
16pub use crypto::hashing::{generate_hash, verify_hash};
17#[cfg(feature = "rand")]
18pub use crypto::rand::generate_random_string;
19
20#[cfg(feature = "two-factor-auth")]
21pub use tfa::TwoFactorAuth;