HCVault.Native 1.6.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package HCVault.Native --version 1.6.2
                    
NuGet\Install-Package HCVault.Native -Version 1.6.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HCVault.Native" Version="1.6.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HCVault.Native" Version="1.6.2" />
                    
Directory.Packages.props
<PackageReference Include="HCVault.Native" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HCVault.Native --version 1.6.2
                    
#r "nuget: HCVault.Native, 1.6.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package HCVault.Native@1.6.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=HCVault.Native&version=1.6.2
                    
Install as a Cake Addin
#tool nuget:?package=HCVault.Native&version=1.6.2
                    
Install as a Cake Tool

HCVault.Native

NuGet package with the prebuilt native libraries of hcvault-core — a portable build of the VeraCrypt volume core behind a small C API (vcapi.h): create, open and modify VeraCrypt containers, normal and hidden volumes, all cipher/KDF combinations, keyfiles, PIM, header re-encryption, exFAT via the bundled FatFs (ChaN R0.15).

The package follows the standard NuGet runtimes/ layout:

Runtime Library
win-x64, win-x86, win-arm64 hcvault-core.dll
linux-x64 libhcvault-core.so
android-arm64, android-arm, android-x86, android-x64 libhcvault-core.so (API 21+, 16 KB-page aligned)

Usage

Reference HCVault.Core (the managed wrapper) and build your application with a RuntimeIdentifier — HCVault.Core depends on this package, so the matching library is pulled in automatically, copied to your output (or packaged into the APK lib/<abi>/ on Android) and found by the wrapper's loader. Reference this package explicitly only to force a different version.

Building without a RuntimeIdentifier (the default F5/debug build) copies the library matching the machine you build on into the output automatically

  • convenient for development. For deployment, publishing or cross-building, set an explicit RuntimeIdentifier (-r linux-x64 …) so the correct platform's library is selected.

Need a platform not listed above (macOS, other architectures)? Build the core from the repository sources instead: it is a plain CMake project (cmake -S native -B build && cmake --build build), and HCVault.Core picks up manually placed libraries through the same probing rules.

License and provenance

Packaging and port layer: Apache-2.0. The vendored VeraCrypt sources are under the VeraCrypt license (LICENSE-VeraCrypt.txt in this package), dual-licensed Apache-2.0 / TrueCrypt 3.0. FatFs is BSD-style.

This project is independent and not affiliated with IDRIX or the VeraCrypt project. The code was written with AI assistance and has not been security-audited.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on HCVault.Native:

Package Downloads
HCVault.Core

Managed wrapper around the VeraCrypt volume core: create, open, read and write VeraCrypt encrypted containers (normal and hidden volumes, all cipher/KDF combinations, keyfiles, PIM) without mounting them. Pulls in the matching HCVault.Native package (prebuilt native libraries for Windows, Linux and Android) automatically; build your own from the repository sources with CMake if you need another platform.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.6.3 98 10/16/2026
1.6.2 105 10/16/2026
1.6.0 102 10/14/2026
1.5.0 90 10/12/2026
1.4.1 108 10/9/2026
1.4.0 109 9/29/2026

1.6.2: packaging fixes - the native libraries were nested under a doubled runtimes/ prefix in all earlier packages, so NuGet never copied them to consuming builds (referencing the package alone did not work); the layout is now the standard runtimes/{rid}/native. The package also ships a build-translation targets file that copies the native library into the output of RID-less (default debug) builds. No library changes; the binaries are identical to 1.6.0 and volumes are compatible with 1.4.x/1.5.x/1.6.0 (same vcapi v4).