Regira.Security
6.3.3
dotnet add package Regira.Security --version 6.3.3
NuGet\Install-Package Regira.Security -Version 6.3.3
<PackageReference Include="Regira.Security" Version="6.3.3" />
<PackageVersion Include="Regira.Security" Version="6.3.3" />
<PackageReference Include="Regira.Security" />
paket add Regira.Security --version 6.3.3
#r "nuget: Regira.Security, 6.3.3"
#:package Regira.Security@6.3.3
#addin nuget:?package=Regira.Security&version=6.3.3
#tool nuget:?package=Regira.Security&version=6.3.3
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
- Index — Overview, projects, and choosing a scheme
- Encryption & Hashing — Symmetric encryption, PBKDF2 and BCrypt password hashing
- JWT Authentication — Self-issued bearer tokens, claims, and refresh tokens
- API Key Authentication — Key-based auth for machine callers
- External Identity Providers — Validating external bearer tokens; OpenID Connect sign-in
- Cookie Authentication — Cookie-backed sessions
- Composing Multiple Schemes — Running several schemes side by side
- Pre-built Auth Controllers — Account, password and user endpoints
- 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 | Versions 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. |
-
net10.0
- Regira.Common (>= 6.3.3)
-
net8.0
- Regira.Common (>= 6.3.3)
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.