Closed josecelano closed 2 years ago
In tests, you use an 8-byte array.
I want to generate one randomly.
Is there any recommendation or other crate to generate safe random keys for Blowfish?
You can use rand::OsRng or rand::ThreadRng.
rand::OsRng
rand::ThreadRng
Note that the rust-crypto crate is deprecated. You can use the blowfish crate instead from the RustCrypto organization.
rust-crypto
In tests, you use an 8-byte array.
I want to generate one randomly.
Is there any recommendation or other crate to generate safe random keys for Blowfish?