Helper Class for dealing with the secure hashing of passwords in OpenPetra.
More...
Helper Class for dealing with the secure hashing of passwords in OpenPetra.
OpenPetra supports different versions of password hashing algorithms; these are implemented in the Classes that implement the IPasswordHashingScheme Interface!
◆ EqualsAntiTimingAttack()
static bool Ict.Common.TPasswordHelper.EqualsAntiTimingAttack |
( |
byte[] |
a, |
|
|
byte[] |
b |
|
) |
| |
|
inlinestatic |
Compare two byte arrays. Avoiding timing attacks by making sure that the comparison always takes the same amount of time.
- Parameters
-
- Returns
- True if equal. Otherwise False.
◆ GetPasswordSchemeHelperForVersion()
New instance of the Class that implements the specified version of OpenPetra's Password Hashing Scheme ('Factory Pattern').
◆ GetRandomSecurePassword()
static string Ict.Common.TPasswordHelper.GetRandomSecurePassword |
( |
| ) |
|
|
inlinestatic |
Generates a new secure password.
- Returns
- New secure password.
◆ GetRandomToken()
static string Ict.Common.TPasswordHelper.GetRandomToken |
( |
| ) |
|
|
inlinestatic |
return a token for the password reset functionality
◆ LogByteArrayContents()
static void Ict.Common.TPasswordHelper.LogByteArrayContents |
( |
byte[] |
AArray, |
|
|
string |
ADescription |
|
) |
| |
|
inlinestatic |
Logs the decimal representation of a byte array of arbitrary length for debugging purposes.
- Parameters
-
AArray | Byte array. |
ADescription | Description of the byte array. |
◆ CurrentPasswordScheme
New instance of the Class that implements OpenPetra's current Password Hashing Scheme ('Factory Pattern').
IMPORTANT: This Method defines what is regarded as OpenPetra's current Password Hashing Scheme!!!
◆ CurrentPasswordSchemeNumber
int Ict.Common.TPasswordHelper.CurrentPasswordSchemeNumber |
|
staticget |
Number of the Password Hashing Scheme that represents OpenPetra's current Password Hashing Scheme.
The documentation for this class was generated from the following file: