Quick Start
Deploying CADP for .NET Core
Open the command prompt or terminal from the directory where the sample needs to be created.
Run
dotnet new console
. It will create a console application with the required files.Download the Samples.
Copy the desired sample file (for example,
CryptoOpRijndael.cs
) and paste it in the same folder.Remove the existing
Program.cs
file.Add the NuGet package as mentioned in the next section. To know more about NuGet package, refer to CipherTrust.CADP.NETCore.
Adding NuGet Package to the Project
Open the command prompt for Windows/MAC/Linux.
Run the following command to add the NuGet package:
Syntax
dotnet add package CipherTrust.CADP.NETCore
Open project in the Visual Studio. The .NET 6.0 is supported by Visual Studio 2022.
Right-click the project in the Solution Explorer and select Manage NuGet Packages for Solution.
Go to Browse and search
CipherTrust.CADP.NETCore
package.Click the Install button in the right pane. Follow the online instructions to install the NuGet package.
Open project using Visual Studio Code.
Open Visual Studio terminal.
Run the following command to add the NuGet package:
Syntax
dotnet add package CipherTrust.CADP.NETCore
Click here to know about the alternate method to add the Nuget package.
Verifying Deployment
After compilation, the project can be run to test your deployment. To verify the installation:
Configure the
CADP.NETCore_Properties.xml
properties file available in the NuGet Installation directory under thecontent
folder. Refer to the Configuration section for the configuration parameters details.Specify a valid user name and password when the project prompts for it. The project uses this information to log on to the CipherTrust Manager specified in the
CADP.NETCore_Properties.xml
file.Follow the instructions prompted during the execution.
Samples
You can download the CADP samples from the corresponding Github location.