mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
10 lines
284 B
Rust
10 lines
284 B
Rust
|
|
const ENV_KEY_NAME: &str = "OBFUSCATION_KEY";
|
||
|
|
const BACKUP_ENV_KEY: &str = "OBFUSCATION_KEY_DO_NOT_USE";
|
||
|
|
|
||
|
|
pub fn get_encryption_key() -> String {
|
||
|
|
std::env::var(ENV_KEY_NAME).unwrap_or({
|
||
|
|
println!("Using default encryption key!");
|
||
|
|
BACKUP_ENV_KEY.to_owned()
|
||
|
|
})
|
||
|
|
}
|