Using Code of CTI 2.0

Download the source code of CTI Text Encryption 2.0 Beta.

Find 2 filess inside the zip file.

cit2.cs

XCrypt.cs

Add the 2 files into your project.

Below are some of the examples.

 

Encrypt with 1 key:

public string Encrypt(string input, string key)
{
      string output = CTI2.Encrypt(input, key);
}

 

 

Encrypt with multiple keys:

 

public string Encrypt(string input, string key1, string key2, string key3)
{
    List<string> keys = new List<string>();
    keys.Add(key1);
    keys.Add(key2);
    keys.Add(key3);
    string output = CTI2.Encrypt(input, keys);
}

 

 

Decrypt with single key:

 

public string Decrypt(string input, string key)
{
    string output = CTI2.Decrypt(input, key);
}

 

Decrypt with multiple keys:

 

public string Decrypt(string input, string key1, string key2, string key3)
{
    List<string> keys = new List<string>();
    keys.Add(key1);
    keys.Add(key2);
    keys.Add(key3);
    string output = CTI2.Decrypt(input, keys);
}

Last edited Sep 27, 2011 at 2:25 PM by adriancs, version 3

Comments

No comments yet.