{"id":75224,"library":"rc4","title":"RC4","description":"Pure Rust implementation of the RC4 stream cipher.","status":"active","version":"0.2.0","language":"rust","source_language":null,"source_url":"https://github.com/RustCrypto/stream-ciphers","tags":["cipher","stream","cryptography","rc4"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nrc4 = \"0.2.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add rc4","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Rc4","correct":"use rc4::Rc4;"}],"quickstart":{"code":"use rc4::Rc4;\n\nfn main() {\n    let key = b\"secret\";\n    let mut cipher = Rc4::new(key);\n    let mut data = vec![0u8; 16];\n    cipher.apply_keystream(&mut data);\n    println!(\"Encrypted: {:?}\", data);\n}","lang":"rust","description":"Minimal example encrypting data using RC4."},"warnings":[{"fix":"Use a modern cipher like AES-GCM or ChaCha20-Poly1305.","message":"RC4 is cryptographically broken and should not be used for security.","severity":"breaking","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'cipher':9,10 'cryptographi':12 'implement':4 'pure':2 'rc4':1,7,13 'rust':3 'stream':8,11","created_at":"2026-06-17T19:13:59.169190+00:00","updated_at":"2026-06-17T19:13:59.169190+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/RustCrypto/stream-ciphers","github":"https://github.com/RustCrypto/stream-ciphers","docs":"https://docs.rs/rc4/","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-17","next_check":"2026-12-14","install_tag":null}}