C# Class CustomConfigurations.TripleDESProtectedConfigurationProvider

Inheritance: System.Configuration.ProtectedConfigurationProvider
ファイルを表示 Open project: twistedtwig/CustomConfigurations Class Usage Examples

Public Methods

Method Description
CreateKey ( ) : void
Decrypt ( XmlNode encryptedNode ) : XmlNode
Encrypt ( XmlNode node ) : XmlNode
Initialize ( string name, NameValueCollection config ) : void

Private Methods

Method Description
ByteToHex ( byte byteArray ) : string
DecryptString ( string encryptedValue ) : string
EncryptString ( string encryptValue ) : string
HexToByte ( string hexString ) : byte[]
ReadKey ( string filePath ) : void

Method Details

CreateKey() public method

public CreateKey ( ) : void
return void

Decrypt() public method

public Decrypt ( XmlNode encryptedNode ) : XmlNode
encryptedNode System.Xml.XmlNode
return System.Xml.XmlNode

Encrypt() public method

public Encrypt ( XmlNode node ) : XmlNode
node System.Xml.XmlNode
return System.Xml.XmlNode

Initialize() public method

public Initialize ( string name, NameValueCollection config ) : void
name string
config System.Collections.Specialized.NameValueCollection
return void