Programming

Public Key
Using the control in an ASP.NET Webform or Control
Name Spaces, Classes and Methods

 
 

Public Key

The Priusant Login Control and associated assemblies are signed by Priusant Digital Keys. To use the control and assemblies, you will need the public key information which is given below. Also, to extend the system, you may need to sign your application by your own key for the build process to work successfully.

Version=2.1.1.1, Culture=neutral

PublicKeyToken=c19615e04a86079f

Public Key = 0024000004800000940000000602000000240000525341310004000001000100b916430dfd051c
6b8aaa40a13ccbe57cc73c4137e590ec89364e03da7f0633f5d560f44be1f0e293950c35268b25
d5fb9c0b4430647660c32740fbc301ec9675b7035377fd6e3522b577eac37236eb6399995bc76b
5fdf8aeb0ffe5eb6c169acaee61349a76b04f01e08f240293ba479168a447c0f5adb212f09976f
2f0d2cc1

Public Key File= public_key.snk

The above information can be obtained by the command

C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin"\sn -tp public_key.snk

Using the control in an ASP.NET Webform or Control
<%@ Register
TagPrefix="login"
Namespace="eCart.CoreControls"
Assembly="CoreControls, Version=2.1.1.1, Culture=neutral, PublicKeyToken=c19615e04a86079f"
%>

Name Spaces, Classes and Methods
The following documented features may be used to create a fully functional website with login/logout and module navigation features.

Encryption:

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.