use std::env; use exun::*; /// This is a secret salt, needed for creating passwords. It's used as an extra /// layer of security, on top of the salt that's already used. pub fn pepper() -> Result, RawUnexpected> { let pepper = env::var("SECRET_SALT")?; let pepper = hex::decode(pepper)?; Ok(pepper.into_boxed_slice()) } /// The URL to the MySQL database pub fn database_url() -> Result { env::var("DATABASE_URL").unexpect() }