Registry / crypto / ecb
library0.2.0rscratesunverified

Electronic Codebook (ECB) block cipher mode of operation.

# Cargo.toml [dependencies] ecb = "0.2.0"
INSTALL
IMPORT
SIG · ECB
E
ecb
cryptorustv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Ecb
use ecb::Ecb;

Minimal example showing import of ECB mode.

use ecb::Ecb; fn main() { // ECB mode requires a block cipher; example uses AES. // See documentation for full usage. println!("ECB mode available"); }
Debug
Known issues
gotchaECB mode is insecure for most applications; avoid using it for encryption of multiple blocks.
fix
Use a more secure mode like CBC or GCM.
affects: >=0.1.0
Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
1
Resources
ecb — cargo add ecb · libregistry