pub struct Md5 { /* private fields */ }Expand description
MD5.
Broken as a cryptographic hash; provided for legacy protocols only.
Served by the driver registered for it; see driver.
§Example
ⓘ
let digest = Md5::digest(b"hello world");
// Or incrementally:
let mut hasher = Md5::new();
hasher.update(b"hello ");
hasher.update(b"world");
assert_eq!(hasher.finalize(), digest);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Md5
impl !Unpin for Md5
impl !UnwindSafe for Md5
impl Freeze for Md5
impl Send for Md5
impl Sync for Md5
impl UnsafeUnpin for Md5
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