LLCRYPTOLIB MONODEVELOP TUTORIAL
1. Open MonoDevelop for Linux/Gnome
2. Select File/New Project...
3. Select C#/Console Project template. Enter a name: MyProject
4. Copy LLCryptoLib.dll for Mono in the project directory
5. Add reference to LLCryptoLib: in the Solution View expand References then right click. Select "Edit References..." then
choose .Net Assembly tab. Select LLCryptoLib.dll file and press "+Add" button. Click Ok.
6. Set Project Option. In the Solution view, right click "MyProject" and select "Options...". In "Runtime options" set the
runtime version to "2.0"
6. In the solution view, click on Main.cs
7. Copy the following source file in the editor view:
// LLCryptoLib Mono Example using System; using System.Text; 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, Encoding.ASCII); Console.WriteLine("String: {0} {1}Hash : {2}", rndString, Environment.NewLine, hashCode); Console.WriteLine("--- Press any key ---"); Console.ReadKey(); } } }
8. Select "Project/Build solution"
9. Select "Project/Run"
10. Verify that the program runs and that the decryption was correctly done.
11. If you have problems, please contact our support at http://www.littlelite.net/support.html