LLCRYPTOLIB SHARPDEVELOP TUTORIAL

A brief SharpDevelop tutorial. (You can easily adapt these instructions for Visual Studio 2005 or other IDEs)

1) If you have not installed SharpDevelop yet you can obtain it from: http://www.icsharpcode.net/OpenSource/SD/Download/

2) Open SharpDevelop

3) Select "File/New Solution..."

4) Select "C#/Windows Applications/Console Application", enter a name for your solution, click Create.

5) In the left pane called Projects, expand your solution's References node

6) Select "Add reference...". Click ".NET Assembly Browser" tab, click "Browse..." and navigate to LLCryptoLib.dll (in your LLCryptoLib folder under Library/DotNet directory)

7) A new entry "LLCryptoLib" is added to the references node.

8) Copy the following source code:

using System;
using LLCryptoLib.Hash;
using LLCryptoLib.Utils;

namespace LLCryptoLibTrial
{
    class Program
    {
        static void Main(string[] args)
        {
		string rndString = RandomString.Get();
		IHash hashObject = new Hash();
		hashObject.SetAlgorithm(AvailableHash.MD5);
		string hashCode = hashObject.ComputeHash(rndString);
		Console.WriteLine("String: {0} {1}Hash  : {2}", rndString, Environment.NewLine, hashCode);
		Console.WriteLine("--- Press any key ---");
		Console.ReadKey();
        }
    }
}

9) Press 'F5' to run the application: a random string and its hash code should appear.

10) If you have problems, please contact our support at http://www.littlelite.net/support.html