pub struct Blowfish { /* private fields */ }
Expand description
Implementation of the Blowfish block cipher, specialized for encrypting and decrypting SqexArg - the technique used to encrypt game arguments by the launcher.
§Example
let key = b"abcdefgh";
let data = b"foobar ";
let fish = Blowfish::new(key);
let encrypted = fish.encrypt(data).unwrap();
let decrypted = fish.decrypt(&encrypted).unwrap();
Implementations§
Auto Trait Implementations§
impl Freeze for Blowfish
impl RefUnwindSafe for Blowfish
impl Send for Blowfish
impl Sync for Blowfish
impl Unpin for Blowfish
impl UnwindSafe for Blowfish
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more