Method | Description | |
---|---|---|
CalculatePasswordHash ( string password, string salt ) : string | ||
Decrypt ( string encryptedData ) : string | ||
DecryptHashed ( string encryptedData ) : string | ||
Encrypt ( string dataToEncrypt ) : string | ||
EncryptAndHash ( string dataToEncrypt ) : string | ||
GenerateDecryptionKey ( ) : string | ||
GenerateSalt ( ) : string | ||
GenerateToken ( ) : string | ||
GenerateValidationKey ( ) : string | ||
Hash ( string dataToHash ) : string | ||
ValidateHash ( string hashedData ) : string |
Method | Description | |
---|---|---|
Protect ( string input, Protection protectionOption ) : string | ||
Unprotect ( string encodedData, Protection protectionOption ) : string |
Method | Description | |
---|---|---|
GetRandomBuffer ( int bufferSize ) : byte[] |
public CalculatePasswordHash ( string password, string salt ) : string | ||
password | string | |
salt | string | |
return | string |
public Decrypt ( string encryptedData ) : string | ||
encryptedData | string | |
return | string |
public DecryptHashed ( string encryptedData ) : string | ||
encryptedData | string | |
return | string |
public Encrypt ( string dataToEncrypt ) : string | ||
dataToEncrypt | string | |
return | string |
public EncryptAndHash ( string dataToEncrypt ) : string | ||
dataToEncrypt | string | |
return | string |
protected abstract Protect ( string input, Protection protectionOption ) : string | ||
input | string | |
protectionOption | Protection | |
return | string |
protected abstract Unprotect ( string encodedData, Protection protectionOption ) : string | ||
encodedData | string | |
protectionOption | Protection | |
return | string |
public ValidateHash ( string hashedData ) : string | ||
hashedData | string | |
return | string |