Name Space |
eCart.Security |
Class Name |
SymEncr |
Constructor |
SymEncr() |
Methods |
|
DPAPIEncrypt |
public System.String DPAPIEncrypt ( System.String sInput ) |
|
Returns encrypted string for a given input string using DPAPI
encryption. The encrypted string will be different in different
machines. Hence the original input string must not be destroyed. |
DPAPIDecrypt |
public System.String DPAPIDecrypt ( System.String sInput ) |
|
Returns decrypted string for a given DPAPI encrypted input string.
|
Encrypt |
public System.String Encrypt ( System.String sKey , System.String
sInput ) |
|
Returns a symmetrically encrypted string using the specified
key. The key is required to decrypt the string. Encryption is not
machine dependant.
To store the key within the application for internally decrypting
a string, the key itself may be encrypted using DPAPI encryption
using DPAPIEncrypt method. (Please note that the original key must
not be destroyed.) |
Decrypt |
public System.String Decrypt ( System.String sKey , System.String
sInput ) |
|
Returns the decrypted string using the specified key from the given
input string which was previously encrypted using the same key. |
|
|
Name Space |
eCart.Configuration |
Class Name |
Config |
Constructor |
Config() |
|
public Config ( System.String ApplnId ) |
Properties |
|
CfgDbString |
public System.String CfgDbString |
|
Un encrypted connection string for the configuration database |
CfgDbType |
public System.String CfgDbType |
|
Data base type of the configuration database. (OLEDB or SQLDB) |
DbType |
public System.String DbType |
|
Data base type of the member database and Log databse (OLEDB or
SQLDB) |
EncryptPassword |
public System.Boolean EncryptPassword |
|
If the password fields in the member database table is encrypted
or not. If encrypted, the key must be specified in the configuration
file as a DPAPI encrypted string. |
IsEncrypted |
public System.Boolean IsEncrypted |
|
Specified if the database connection strings in the configuration
database are encrypted using DPAPI or not. |
LicenseFile |
public System.String LicenseFile |
|
Relative path to the domain license file. |
MbrDbString |
public System.String MbrDbString |
|
Connection to connect to the member database. If IsEncrypted is
true, this string must be DPAPI encrypted |
LogDbString |
public System.String LogDbString |
|
Connection to connect to the log database. If IsEncrypted is true,
this string must be DPAPI encrypted |
Methods |
|
GetConfigItem |
public System.String GetConfigItem ( System.String ColName , System.Boolean
DeCrypt ) |
|
Returns the named configuration item from the configuration database
by its key name. If DeCrypt is true, the returned value will decrypted
using DPAPI encryption. Returns null if there is an error. |
GetConfigItem |
public System.String GetConfigItem ( System.String ColName ) |
|
Returns the named configuration item from the configuration database
by its key name. |