{"id":59206,"library":"salsa20","title":"Salsa20","description":"Pure Rust implementation of the Salsa20 stream cipher.","status":"active","version":"0.11.0","language":"rust","source_language":null,"source_url":"https://github.com/RustCrypto/stream-ciphers","tags":["cryptography","stream-cipher","salsa20","no-std"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nsalsa20 = \"0.11.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add salsa20","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Salsa20","correct":"use salsa20::Salsa20;"}],"quickstart":{"code":"use salsa20::Salsa20;\nuse cipher::{KeyIvInit, StreamCipher};\n\nlet key = [0u8; 32];\nlet iv = [0u8; 8];\nlet mut cipher = Salsa20::new(&key.into(), &iv.into());\nlet mut data = [0u8; 64];\ncipher.apply_keystream(&mut data);\nprintln!(\"Encrypted data: {:?}\", data);","lang":"rust","description":"Encrypts data using the Salsa20 stream cipher."},"warnings":[{"fix":"Add `cipher` as a dependency and import the necessary traits.","message":"Requires the `cipher` crate for trait imports like KeyIvInit and StreamCipher.","severity":"gotcha","affected_versions":">=0.11.0"}],"env_vars":null,"search_vec":"'cipher':9,13 'cryptographi':10 'implement':4 'no-std':15 'pure':2 'rust':3 'salsa20':1,7,14 'std':17 'stream':8,12 'stream-ciph':11","created_at":"2026-06-16T16:54:17.040337+00:00","updated_at":"2026-06-16T16:54:17.040337+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/salsa20/","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}}