BcryptHashInfo Struct
Contains parsed information from a BCrypt hash string.
public readonly struct BcryptHashInfo : IEquatable<BcryptHashInfo>- Implements
Constructors
| Name | Description |
|---|---|
| BcryptHashInfo(BcryptVersion, int) | Initializes a new instance of the BcryptHashInfo struct. |
BcryptHashInfo(BcryptVersion, int)
BcryptHashInfo.csInitializes a new instance of the BcryptHashInfo struct.
public BcryptHashInfo(BcryptVersion version, int workFactor)Parameters
versionBcryptVersion- The BCrypt revision.
workFactorint- The BCrypt work factor (cost).
Properties
| Name | Description |
|---|---|
| Version | Gets the BCrypt revision. |
| WorkFactor | Gets the BCrypt work factor (cost). |
Version
BcryptHashInfo.csWorkFactor
BcryptHashInfo.csMethods
| Name | Description |
|---|---|
| Equals(BcryptHashInfo) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(BcryptHashInfo)
BcryptHashInfo.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(BcryptHashInfo other)Parameters
otherBcryptHashInfo- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
BcryptHashInfo.csGetHashCode()
BcryptHashInfo.csOperators
| Name | Description |
|---|---|
| operator ==(BcryptHashInfo, BcryptHashInfo) | Determines whether two hash information values are equal. |
| operator !=(BcryptHashInfo, BcryptHashInfo) | Determines whether two hash information values are different. |
operator ==(BcryptHashInfo, BcryptHashInfo)
BcryptHashInfo.csDetermines whether two hash information values are equal.
public static bool operator ==(BcryptHashInfo left, BcryptHashInfo right)Parameters
leftBcryptHashInfo- The first value.
rightBcryptHashInfo- The second value.
Returns
bool true if the values are equal; otherwise, false.
operator !=(BcryptHashInfo, BcryptHashInfo)
BcryptHashInfo.csDetermines whether two hash information values are different.
public static bool operator !=(BcryptHashInfo left, BcryptHashInfo right)Parameters
leftBcryptHashInfo- The first value.
rightBcryptHashInfo- The second value.
Returns
bool true if the values are different; otherwise, false.