pub enum Version {
TwoA,
TwoX,
TwoY,
TwoB,
}Expand description
The version marker in a bcrypt hash string: the v in $2v$.
Versions are labels: every variant accepted by this crate computes
the same, correct algorithm (see the crate-level “Variant semantics”
section). The historical $2x$ / 8-bit-$2a$ bug emulations are not
reproduced.
Variants§
TwoA
$2a$ — the original OpenBSD spelling.
TwoX
$2x$ — crypt_blowfish’s marker for hashes computed with its
sign-extension bug. Accepted on parse so databases containing it
still verify; the correct algorithm is computed regardless.
TwoY
$2y$ — crypt_blowfish’s post-fix spelling.
TwoB
$2b$ — the current spelling, and what this crate emits by default.
Trait Implementations§
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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