1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! The Utility module
//!
//! This is where all the utility functions are defined for the GeekORM crate.
//! There are several utility functions that are used in the crate.
//!
//! - Cryptography
//!   - `generate_random_string` - Generate a random string
//!   - `generate_hash` - Generate a hash
//!

/// The Cryptography module
pub mod crypto;

#[cfg(feature = "rand")]
pub use crypto::rand::generate_random_string;

#[cfg(feature = "hash")]
pub use crypto::hashing::generate_hash;
#[cfg(feature = "hash")]
pub use crypto::hashing::verify_hash;