Skip to main content

secret_basic/
secret_basic.rs

1use reliakit_secret::{ExposeSecret, Secret, SecretString};
2
3fn main() {
4    let api_key = Secret::new("rk_live_example");
5    let password = SecretString::from_string("correct horse battery staple");
6
7    println!("api key: {api_key}");
8    println!("password: {password:?}");
9    println!("api key length: {}", api_key.expose_secret().len());
10}