Regira.Security 6.3.3

dotnet add package Regira.Security --version 6.3.3
                    
NuGet\Install-Package Regira.Security -Version 6.3.3
                    
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="Regira.Security" Version="6.3.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Regira.Security" Version="6.3.3" />
                    
Directory.Packages.props
<PackageReference Include="Regira.Security" />
                    
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 Regira.Security --version 6.3.3
                    
#r "nuget: Regira.Security, 6.3.3"
                    
#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 Regira.Security@6.3.3
                    
#: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=Regira.Security&version=6.3.3
                    
Install as a Cake Addin
#tool nuget:?package=Regira.Security&version=6.3.3
                    
Install as a Cake Tool

Regira Security

Regira Security provides encryption, password hashing, JWT authentication, and API Key authentication for .NET applications.

Projects

Project Package Purpose
Common.Security Regira.Security Symmetric encryption and PBKDF2 hashing
Security.Hashing.BCryptNet Regira.Security.Hashing.BCryptNet BCrypt password hashing
Security.Authentication Regira.Security.Authentication JWT tokens and API Key auth
Security.Authentication.Web Regira.Security.Authentication.Web Pre-built auth controllers

Installation


<PackageReference Include="Regira.Security" Version="6.*" />


<PackageReference Include="Regira.Security.Hashing.BCryptNet" Version="6.*" />


<PackageReference Include="Regira.Security.Authentication" Version="6.*" />


<PackageReference Include="Regira.Security.Authentication.Web" Version="6.*" />

Choosing an authentication scheme

You need Use Reference
Sign in users this application owns Self-issued JWT + refresh tokens JWT Authentication
Authenticate a machine caller API key API Key Authentication
Accept tokens from Entra ID or another IdP External bearer validation External Identity Providers
Redirect users to an IdP to sign in OpenID Connect External Identity Providers
Server-rendered app or same-site SPA Cookie sessions Cookie Authentication
More than one of the above in one app Scheme composition Composing Multiple Schemes
Account / password / user endpoints without writing them Regira.Security.Authentication.Web Pre-built Auth Controllers

Encryption and password hashing stand apart from the schemes above and are covered in Encryption & Hashing. Regira.Security.Hashing.BCryptNet is the recommended password hasher.


Overview

  1. Index — Overview, projects, and choosing a scheme
  2. Encryption & Hashing — Symmetric encryption, PBKDF2 and BCrypt password hashing
  3. JWT Authentication — Self-issued bearer tokens, claims, and refresh tokens
  4. API Key Authentication — Key-based auth for machine callers
  5. External Identity Providers — Validating external bearer tokens; OpenID Connect sign-in
  6. Cookie Authentication — Cookie-backed sessions
  7. Composing Multiple Schemes — Running several schemes side by side
  8. Pre-built Auth Controllers — Account, password and user endpoints
  9. Practical Examples — Complete implementation examples

License

Apache License 2.0 — this package contains no license validation and no runtime limits. See LICENSE. A few companion packages are commercially licensed with a free tier; see the licensing overview.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Regira.Security:

Package Downloads
Regira.Security.Authentication

JWT and OAuth2 authentication helpers using Duende IdentityModel for Regira.

Regira.Security.Hashing.BCryptNet

BCrypt password hashing using BCrypt.Net-Next for Regira.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.3.3 81 9/22/2026
6.3.2 125 9/19/2026
6.3.1 121 9/17/2026
6.2.1 170 9/5/2026
6.1.3 189 8/26/2026
6.1.2 179 8/16/2026
6.1.1 163 8/12/2026
6.1.0 169 8/10/2026