Registry / crypto / blowfish

blowfish

JSON →
library0.10.0rscratesunverified

Blowfish block cipher implementation.

# Cargo.toml [dependencies] blowfish = "0.10.0"
INSTALL
IMPORT
SIG · BLOWFISH
B
blowfish
cryptorustv0.10.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.

Blowfish
use blowfish::Blowfish;

Encrypts a block using the Blowfish cipher.

use blowfish::Blowfish; use cipher::{KeyInit, BlockEncrypt}; fn main() { let key = b"mysecretkey"; let cipher = Blowfish::new_from_slice(key).unwrap(); let mut block = [0u8; 8]; cipher.encrypt_block(&mut block.into()); }
Debug
Known issues
gotchaBlowfish is considered outdated; prefer AES or ChaCha20
fix
Use aes or chacha20 crate for modern encryption.
affects: >=0.1.0
Upgrade
Version history
0.10.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
Resources
blowfish — cargo add blowfish · libregistry