{"id":57585,"library":"secrecy","title":"Secrecy","description":"Wrapper types and traits for secret management which help ensure they aren't accidentally copied, logged, or otherwise exposed, and also ensure secrets are securely wiped from memory when dropped.","status":"active","version":"0.10.3","language":"rust","source_language":null,"source_url":"https://github.com/iqlusioninc/crates","tags":["security","secrets","memory","zeroize"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nsecrecy = \"0.10.3\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add secrecy","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Secret","correct":"use secrecy::Secret;"}],"quickstart":{"code":"use secrecy::Secret;\n\nfn main() {\n    let secret = Secret::new(\"my_secret_password\".to_string());\n    println!(\"Secret is: {:?}\", secret.expose_secret());\n}","lang":"rust","description":"Creates a secret string and exposes it for printing."},"warnings":[{"fix":"Avoid printing secrets directly; use `expose_secret()` only when necessary.","message":"Exposing secrets via Debug or Display may leak them.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'accident':15 'also':22 'aren':13 'copi':16 'drop':31 'ensur':11,23 'expos':20 'help':10 'log':17 'manag':8 'memori':29,34 'otherwis':19 'secreci':1 'secret':7,24,33 'secur':26,32 'trait':5 'type':3 'wipe':27 'wrapper':2 'zeroiz':35","created_at":"2026-06-16T15:49:39.482398+00:00","updated_at":"2026-06-16T15:49:39.482398+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/iqlusioninc/crates/","github":"https://github.com/iqlusioninc/crates","docs":"https://docs.rs/secrecy/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["crypto","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}