BcryptVersion enum

The Bcrypt algorithm version

Inheritance
Available extensions

Values

$2a → const BcryptVersion

This is a revised version of original v2 with UTF-8 character support and inclusion of the null terminator with the password.

const BcryptVersion._('2a')
$2b → const BcryptVersion

This is the bug-fixed version of OpenBSD implementation of bcrypt, which fixes the support for password longer than 255 characters.

const BcryptVersion._('2b')
$2x → const BcryptVersion

This was introduced by PHP crypt_blowfish implementation to mark hashes generated with a bug in their implementation.

const BcryptVersion._('2x')
$2y → const BcryptVersion

This was introduced by PHP crypt_blowfish implementation to mark hashes generated after fixing the bug in their implementation.

const BcryptVersion._('2y')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String
The name of this version
final
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromName(String name) BcryptVersion
Gets the version from string name

Constants

values → const List<BcryptVersion>
A constant List of the values in this enum, in order of their declaration.