C# Class Keyczar.Pbe.PbeKeyStore

Stores a key encrypted by password
Exibir arquivo Open project: jbtule/keyczar-dotnet Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
DecryptKeyData ( Func passwordPrompt ) : byte[]

Decrypts the key data.

EncryptKeyData ( byte key, Func passwordPrompt, int iterationCount ) : PbeKeyStore

Encrypts the key data.

Protected Methods

Method Description
GetDerivedBytes ( int length, Func passwordPrompt ) : byte[]

Gets the derived bytes using the store's parameters

Method Details

DecryptKeyData() public method

Decrypts the key data.
public DecryptKeyData ( Func passwordPrompt ) : byte[]
passwordPrompt Func The passsword prompt.
return byte[]

EncryptKeyData() public static method

Encrypts the key data.
public static EncryptKeyData ( byte key, Func passwordPrompt, int iterationCount ) : PbeKeyStore
key byte The key.
passwordPrompt Func The password prompt.
iterationCount int The interation count.
return PbeKeyStore

GetDerivedBytes() protected method

Gets the derived bytes using the store's parameters
Hmac_Sha256 not supported.
protected GetDerivedBytes ( int length, Func passwordPrompt ) : byte[]
length int The length.
passwordPrompt Func The password prompt.
return byte[]