{"id":57285,"library":"rust-crypto","title":"rust-crypto","description":"A (mostly) pure-Rust implementation of various common cryptographic algorithms.","status":"active","version":"0.2.36","language":"rust","source_language":null,"source_url":"https://github.com/DaGenix/rust-crypto","tags":["cryptography","hash","sha2","aes","digest"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nrust-crypto = \"0.2.36\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add rust-crypto","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Digest","correct":"use crypto::digest::Digest;"}],"quickstart":{"code":"use crypto::digest::Digest;\nuse crypto::sha2::Sha256;\n\nfn main() {\n    let mut hasher = Sha256::new();\n    hasher.input_str(\"hello world\");\n    let hex = hasher.result_str();\n    println!(\"SHA256: {}\", hex);\n}","lang":"rust","description":"Compute SHA-256 hash of a string using rust-crypto."},"warnings":[{"fix":"Migrate to actively maintained crates like `sha2`, `aes-gcm`, or `ring`.","message":"This crate is unmaintained and may have security issues; prefer `sha2` or `ring`.","severity":"breaking","affected_versions":">=0.2.0"}],"env_vars":null,"search_vec":"'ae':18 'algorithm':14 'common':12 'crypto':3 'cryptograph':13 'cryptographi':15 'digest':19 'hash':16 'implement':9 'most':5 'pure':7 'pure-rust':6 'rust':2,8 'rust-crypto':1 'sha2':17 'various':11","created_at":"2026-06-16T15:36:26.257293+00:00","updated_at":"2026-06-16T15:36:26.257293+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/DaGenix/rust-crypto/","github":"https://github.com/DaGenix/rust-crypto","docs":"https://docs.rs/rust-crypto/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["crypto"],"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}}