[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Colin Shreffler

4/26/2002 11:14:00 PM

Symmetric Encryption Component at http://www.cod...

URL:

http://www.cod.../components/ComponentDetail.aspx?
ComponentID=Sx0xRuj6wyU
Description:

This component uses the DES algorithm with a 64-bit
encryption key. While the source code is specific to DES,
it can be easily modified to use other symmetric
cryptography algorithms like TripleDES or RC2.

The main class called Symmetric exposes two methods:

[1] public string EncryptData(string strKey, string
strData): This method accepts a Key, strKey and another
input parameter, strData. The return string is base64
encoded so that it can be transported over an HTTP
GET/POST. If encryption fails, an empty string is
returned.

[2] public string DecryptData(string strKey, string
strData): This method accepts the same key used to
encrypt the input data, strData. strData must be base64
encoded. The method returns an empty string to indicate
an error has occurred.