{"id":57335,"library":"aes","title":"AES","description":"Pure Rust implementation of the Advanced Encryption Standard (AES), also known as Rijndael.","status":"active","version":"0.9.1","language":"rust","source_language":null,"source_url":"https://github.com/RustCrypto/block-ciphers","tags":["cryptography","aes","encryption","block-cipher"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\naes = \"0.9.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add aes","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Aes256","correct":"use aes::Aes256;"}],"quickstart":{"code":"use aes::Aes256;\nuse block_modes::{BlockMode, Cbc};\nuse block_modes::block_padding::Pkcs7;\n\ntype Aes256Cbc = Cbc<Aes256, Pkcs7>;\n\nlet key = [0u8; 32];\nlet iv = [0u8; 16];\nlet cipher = Aes256Cbc::new_from_slices(&key, &iv).unwrap();\nlet plaintext = b\"Hello world!\";\nlet ciphertext = cipher.encrypt_vec(plaintext);\nprintln!(\"Encrypted: {:?}\", ciphertext);","lang":"rust","description":"Encrypting data with AES-256 in CBC mode."},"warnings":[{"fix":"Use `aes-gcm` crate instead for authenticated encryption.","message":"AES alone does not provide authenticated encryption; use an AEAD mode like AES-GCM for security.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'advanc':7 'ae':1,10,16 'also':11 'block':19 'block-ciph':18 'cipher':20 'cryptographi':15 'encrypt':8,17 'implement':4 'known':12 'pure':2 'rijndael':14 'rust':3 'standard':9","created_at":"2026-06-16T15:38:18.009576+00:00","updated_at":"2026-06-16T15:38:18.009576+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/block-ciphers","github":"https://github.com/RustCrypto/block-ciphers","docs":"https://docs.rs/aes/","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}}