wwAppConfiguration.SetEnryption

Allows you to specify a set of fields to encrypt with a password key. Causes the specified keys to be encrypted whenever written to the output file.

public Void SetEnryption(String EncryptFields, String EncryptKey)

Return Value

Void

Parameters

String EncryptFields
A comma delimited list of fields to encrypt.

String EncryptKey
A pass key that is used to encrypt the values.

Remarks

It's recommended that if you use Encryption you call this method from the constructor of the class to ensure that the encryption is always applied, including from Factory methods.

Example

WebStoreConfig Config = new WebStoreConfig();
Config.SetEncryption("ConnectionString,MailPassword","myPassword");
Config.ReadKeysFromConfig();

// *** Better yet: use a constructor
public WebStoreConfig()
{
	this.SetEncryption("ConnectionString,MailPassword","myPassword");
}

See also:

Class wwAppConfiguration

© West Wind Technologies, 1996-2018 • Updated: 04/21/04
Comment or report problem with topic