Enum pwhash::bcrypt::BcryptVariant [] [src]

pub enum BcryptVariant {
    V2a,
    V2b,
    V2y,
}

Identifiers of algorithm variants which can be produced.

Bcrypt has a long history of use, during which a number bugs were found and fixed in the widely-used implementations. Some bugs were serious enough to warrant a change in the minor version number of the algorithm identifier.

There are two major bcrypt implementations: OpenBSD (the original, used in all *BSDs) and Openwall. A short history of variants is as follows:

This crate has a single bcrypt algorithm implementation which is equivalent to the 2b variant. It accepts 2a and 2y on input, and can generate both on output, but doesn't treat them specially in any way.

Variants

Second OpenBSD variant, fixed repeated string hashing.

Third OpenBSD variant, fixed a wraparound bug.

Openwall variant, fixed a sign extension bug.

Trait Implementations

impl Display for BcryptVariant
[src]

[src]

Formats the value using the given formatter. Read more