libsodium-uwp
0.1.0-alpha2
See the version list below for details.
dotnet add package libsodium-uwp --version 0.1.0-alpha2
NuGet\Install-Package libsodium-uwp -Version 0.1.0-alpha2
<PackageReference Include="libsodium-uwp" Version="0.1.0-alpha2" />
paket add libsodium-uwp --version 0.1.0-alpha2
#r "nuget: libsodium-uwp, 0.1.0-alpha2"
// Install libsodium-uwp as a Cake Addin #addin nuget:?package=libsodium-uwp&version=0.1.0-alpha2&prerelease // Install libsodium-uwp as a Cake Tool #tool nuget:?package=libsodium-uwp&version=0.1.0-alpha2&prerelease
libsodium-uwp - A secure cryptographic library for Universal Windows Platform
Product | Versions Compatible and additional computed target framework versions. |
---|---|
native | native is compatible. |
Universal Windows Platform | uap was computed. uap10.0 is compatible. |
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on libsodium-uwp:
Package | Downloads |
---|---|
Globeport.Client.Uwp.Host
UWP host for Globeport Elements |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.160 | 3,810 | 6/24/2018 |
1.0.152 | 1,157 | 10/11/2017 |
1.0.151 | 1,091 | 10/9/2017 |
1.0.150 | 1,110 | 10/3/2017 |
1.0.132 | 1,194 | 7/27/2017 |
1.0.131 | 1,062 | 7/19/2017 |
1.0.123 | 14,612 | 6/8/2017 |
1.0.122 | 1,131 | 6/8/2017 |
1.0.12 | 1,212 | 3/22/2017 |
1.0.0-rc1 | 1,499 | 11/1/2016 |
1.0.0-alpha6 | 1,016 | 10/27/2016 |
0.1.0-alpha5 | 990 | 10/21/2016 |
0.1.0-alpha4 | 990 | 10/20/2016 |
0.1.0-alpha3 | 987 | 10/17/2016 |
0.1.0-alpha2 | 952 | 10/14/2016 |
# 0.1.0-alpha2
This is the initial release of `libsodium-uwp`. `libsodium-uwp` is a Universal Windows Runtime Component that exposes the `libsodium` library to both desktop and mobile universal windows applications.
## Installation
1. Install package from Nuget
```
Install-Package libsodium-uwp -Pre
```
2. Add the following to your `Package.appxmanifest` file.
```xml
<Extensions>
<Extension Category="windows.activatableClass.inProcessServer">
<InProcessServer>
<Path>libsodium-uwp.dll</Path>
<ActivatableClass ActivatableClassId="Sodium.Core" ThreadingModel="both" />
<ActivatableClass ActivatableClassId="Sodium.KeyPair" ThreadingModel="both" />
<ActivatableClass ActivatableClassId="Sodium.Utilities" ThreadingModel="both" />
<ActivatableClass ActivatableClassId="Sodium.SecretBox" ThreadingModel="both" />
<ActivatableClass ActivatableClassId="Sodium.SecretKeyAuth" ThreadingModel="both" />
<ActivatableClass ActivatableClassId="Sodium.SecretAead" ThreadingModel="both" />
<ActivatableClass ActivatableClassId="Sodium.SealedPublicKeyBox" ThreadingModel="both" />
<ActivatableClass ActivatableClassId="Sodium.PublicKeyBox" ThreadingModel="both" />
<ActivatableClass ActivatableClassId="Sodium.PublicKeyAuth" ThreadingModel="both" />
<ActivatableClass ActivatableClassId="Sodium.CryptoHash" ThreadingModel="both" />
<ActivatableClass ActivatableClassId="Sodium.ScalarMult" ThreadingModel="both" />
</InProcessServer>
</Extension>
</Extensions>
```
## Usage
As a Universal C Runtime Component, this project can be consumed from C#, C++, and JavaScript UWP applications. For more information, please see the [docs](/docs) directory.
### Universal C# Example
A basic example in C# is outlined below.
```C#
using Sodium;
var data = Sodium.Core.GetRandomBytes(32);
```
## Limitations & Known Issues.
1. The Nuget package requires you to add extension information to your `Package.appxmanifest`.
2. Only certain `libsodium` API endpoints are exposed. For more information on what exactly is supported, please see the [docs](/docs) directory.