C# Class KeePassLib.Keys.KcpKeyFile

Key files as provided by the user.
Inheritance: IUserKey
Datei anzeigen Open project: cappert/keepass2 Class Usage Examples

Public Methods

Method Description
Create ( string strFilePath, byte pbAdditionalEntropy ) : void

Create a new, random key-file.

KcpKeyFile ( IOConnectionInfo iocKeyFile ) : System.Security.Cryptography
KcpKeyFile ( IOConnectionInfo iocKeyFile, bool bThrowIfDbFile ) : System.Security.Cryptography
KcpKeyFile ( string strKeyFile ) : System.Security.Cryptography
KcpKeyFile ( string strKeyFile, bool bThrowIfDbFile ) : System.Security.Cryptography

Private Methods

Method Description
Construct ( IOConnectionInfo iocFile, bool bThrowIfDbFile ) : void
CreateXmlKeyFile ( string strFile, byte pbKeyData ) : void
LoadBinaryKey32 ( byte pbFileData ) : byte[]
LoadHexKey32 ( byte pbFileData ) : byte[]
LoadKeyFile ( byte pbFileData ) : byte[]
LoadXmlKeyFile ( byte pbFileData ) : byte[]

Method Details

Create() public static method

Create a new, random key-file.
public static Create ( string strFilePath, byte pbAdditionalEntropy ) : void
strFilePath string Path where the key-file should be saved to. /// If the file exists already, it will be overwritten.
pbAdditionalEntropy byte Additional entropy used to generate /// the random key. May be null (in this case only the KeePass-internal /// random number generator is used).
return void

KcpKeyFile() public method

public KcpKeyFile ( IOConnectionInfo iocKeyFile ) : System.Security.Cryptography
iocKeyFile IOConnectionInfo
return System.Security.Cryptography

KcpKeyFile() public method

public KcpKeyFile ( IOConnectionInfo iocKeyFile, bool bThrowIfDbFile ) : System.Security.Cryptography
iocKeyFile IOConnectionInfo
bThrowIfDbFile bool
return System.Security.Cryptography

KcpKeyFile() public method

public KcpKeyFile ( string strKeyFile ) : System.Security.Cryptography
strKeyFile string
return System.Security.Cryptography

KcpKeyFile() public method

public KcpKeyFile ( string strKeyFile, bool bThrowIfDbFile ) : System.Security.Cryptography
strKeyFile string
bThrowIfDbFile bool
return System.Security.Cryptography