Getting Started¶
Prerequisites¶
- A deployed & configured Smartcrypt Enterprise Manager
- A good understanding of Smartcrypt, especially Smartkeys and Smartkey strategies
Installation¶
The binaries needed for the SDK are hosted by PKWARE. The SDK is split into components so you can pick and choose the components your application needs.
NuGet¶
Create a NuGet.Config
file at the root of your project, next to your .sln
file, with the following content
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="PKWARE" value="https://packages.smartcrypt.com/repository/nuget-public/" />
</packageSources>
<packageSourceCredentials>
<PKWARE>
<add key="Username" value="your_username" />
<add key="ClearTextPassword" value="your_password" />
</PKWARE>
</packageSourceCredentials>
</configuration>
Manual¶
If not using NuGet, or if unable to reach the PKWARE NuGet server, you can download the required files manually.
- Navigate to https://packages.smartcrypt.com/#browse/browse:nuget-public
- Sign in using your credentials
- Refresh the page. You should now be able to see the artifacts.
- Expand that target artifact all the way and download the
nupkg
files needed - Change the downloaded files from
.nupkg
to.zip
- Extract the DLL from the
lib
folder in the zip, and check the.nuspec
file for any transitive dependencies needed.
Note
The repository is password protected; contact PKWARE Sales and Support for access.
Add the following NuGet packages
PKWARE.Smartcrypt.KeyManagement
PKWARE.Smartcrypt.Structured
PKWARE.Smartcrypt.Unstructured
Framework compatibility¶
PKWARE provides support for .NET Framework 4.6.1 and up on Windows, and for .NET Core 2.1 on all platforms, which is the LTS release from Microsoft. The SDK targets .NET Standard 2.0, so other frameworks may work despite being out of support. A complete compatibility matrix is available from Microsoft.
Note
The Unstructured Data component requires the PKArchive.NET Toolkit.
Visual Studio¶
If using Visual Studio, it is recommended you use 2017. If using 2015, you must:
- Install Nuget VSIX 3.6 or higher
- Install .NET Standard build support for Visual Studio 2015
- Install .NET Core 2.1 SDK or higher
- Modify your
.csproj
file by adding<ImplicitlyExpandDesignTimeFacades>false</ImplicitlyExpandDesignTimeFacades>
to the firstPropertyGroup
. This StackOverflow answer gives a good example.