CryptoSys Home > PKI > CryptoSys PKI .NET Class Library

CryptoSys PKI .NET Class Library


The class library diCrSysPKINet.dll provides an interface for .NET programmers to CryptoSys PKI. All methods in diCrSysPKINet.dll are straight static methods, so there is no need to create any objects. Just add a reference to it in your project, use the CryptoSysPKI namespace and you are away.

Introduction | How to use | CryptoSys PKI | Help Documentation | Structure | References | Comment

The C# source code for the class library is available so you can change or add to it if you want (but you are on your own then!). If you want to link statically instead in your C# project, then just add the source code module CryptoSysPKI.cs from the distribution to your project and don't bother adding any references to the class library.

How to use

  1. Make sure the CryptoSys PKI Toolkit is installed on your system.
  2. In your application, add a reference to the library:
    1. Project > Add Reference.
    2. In the .NET tab, click on the Browse button to find and select the library file diCrSysPKINet.dll (installed by default in C:\Program Files (x86)\CryptoSysPKI\DotNet)
    3. Click on OK and the wizard will add the reference of the PKI library to your project.
  3. Add the line (for C#)
    using CryptoSysPKI;
    or (for VB.NET)
    Imports CryptoSysPKI
    to your code.
  4. Use the PKI methods at will, e.g. in C#
    using CryptoSysPKI;
    int n = General.Version();
    Console.WriteLine("Version = {0}", n);
    or in VB.NET
    Imports CryptoSysPKI
    Dim n As Integer
    n = General.Version()
    Console.WriteLine("Version = {0}", n)

See the example test code provided in the distribution download for both C# and VB.NET.

CryptoSys PKI

To use the .NET class library, you need to download and install the trial version of the core CryptoSys PKI, unless you already have a copy installed.


+--------------+              +-------------------+          +-------------------+
| Your         | (References) |                   | (Calls)  |                   |
| .NET project |------------->| diCrSysPKINet.dll |--------->|   diCrPKI.dll     |
|              |              |                   |          |                   |
+--------------+              +-------------------+          +-------------------+
                                [Class Library]               [Core Win32/64 DLL]

using CryptoSysPKI;
Imports CryptoSysPKI


Contact us

To contact us or comment on this page, please send us a message.

[Go to top]

This page last updated 27 September 2020.