XlsxCrypt.NativeExcelEncryption 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package XlsxCrypt.NativeExcelEncryption --version 1.0.0
                    
NuGet\Install-Package XlsxCrypt.NativeExcelEncryption -Version 1.0.0
                    
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="XlsxCrypt.NativeExcelEncryption" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XlsxCrypt.NativeExcelEncryption" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="XlsxCrypt.NativeExcelEncryption" />
                    
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 XlsxCrypt.NativeExcelEncryption --version 1.0.0
                    
#r "nuget: XlsxCrypt.NativeExcelEncryption, 1.0.0"
                    
#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 XlsxCrypt.NativeExcelEncryption@1.0.0
                    
#: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=XlsxCrypt.NativeExcelEncryption&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=XlsxCrypt.NativeExcelEncryption&version=1.0.0
                    
Install as a Cake Tool

XlsxCrypt.NativeExcelEncryption

Native .NET library for password-based encryption of Excel .xlsx workbooks.

Features

  • Native .NET implementation
  • Excel-compatible workbook encryption
  • Supports password-protected .xlsx files
  • Uses the Office Agile Encryption format
  • No EPPlus dependency
  • No ClosedXML dependency
  • No Microsoft Office installation required
  • Designed for server-side and automated environments

Installation

Install the NuGet package:

dotnet add package XlsxCrypt.NativeExcelEncryption

Or from the NuGet Package Manager:

Install-Package XlsxCrypt.NativeExcelEncryption

Usage

using XlsxCrypt.NativeExcelEncryption;

// Example:
//
// XlsxCrypt.NativeExcelEncryption.Encrypt(
//     "input.xlsx",
//     "encrypted.xlsx",
//     "your-password");

API details may vary depending on the version of the library.

Why XlsxCrypt?

XlsxCrypt provides a native .NET approach to Excel workbook encryption without requiring third-party Excel manipulation libraries or an installed Microsoft Office application.

The goal is to provide a lightweight solution for applications that need to generate or protect Excel workbooks programmatically.

Compatibility

The encrypted workbook uses Microsoft's Office Agile Encryption format and is intended to be compatible with Microsoft Excel.

Always test encrypted files with the Excel versions and environments relevant to your application.

Security

This library implements cryptographic operations used by the Office encryption format.

Security-sensitive software should be reviewed and tested appropriately before being used for highly sensitive or regulated data.

Do not use weak passwords.

Requirements

  • .NET 10
  • Windows

License

MIT License.

See the LICENSE

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.2 72 10/2/2026
1.1.1 74 10/2/2026
1.0.0 75 10/1/2026