OpenPetra
Free Administration Software for Non-Profits
Ict.Common.IPasswordHashingScheme Interface Reference

Interface which all Password Hashing Scheme implementations need to implement. More...

Inheritance diagram for Ict.Common.IPasswordHashingScheme:
Ict.Common.TPasswordHashingScheme_V1

Public Member Functions

void GetNewPasswordSaltAndHash (out string APassword, out string ASalt, out string APasswordHash)
 Generates a new secure random password. More...
 
byte[] GetNewPasswordSalt ()
 Generates a new password Salt. More...
 
string GetPasswordHash (string APassword, byte[] ASalt)
 Generates a Password Hash using the Hash Algorithm which is provided through the password hashing methodology that is coded up in each Password Hashing Scheme implementation. More...
 

Detailed Description

Interface which all Password Hashing Scheme implementations need to implement.

Member Function Documentation

◆ GetNewPasswordSalt()

byte[] Ict.Common.IPasswordHashingScheme.GetNewPasswordSalt ( )

Generates a new password Salt.

Returns
New password Salt as a byte array.

Implemented in Ict.Common.TPasswordHashingScheme_V1.

◆ GetNewPasswordSaltAndHash()

void Ict.Common.IPasswordHashingScheme.GetNewPasswordSaltAndHash ( out string  APassword,
out string  ASalt,
out string  APasswordHash 
)

Generates a new secure random password.

Parameters
APasswordSecure random password.
ASaltThe Salt that was used in the creation of the Password Hash.
APasswordHashPassword Hash.

Implemented in Ict.Common.TPasswordHashingScheme_V1.

◆ GetPasswordHash()

string Ict.Common.IPasswordHashingScheme.GetPasswordHash ( string  APassword,
byte[]  ASalt 
)

Generates a Password Hash using the Hash Algorithm which is provided through the password hashing methodology that is coded up in each Password Hashing Scheme implementation.

Implemented in Ict.Common.TPasswordHashingScheme_V1.


The documentation for this interface was generated from the following file: