Hyprx.Secrets 0.0.0-alpha.3

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

Hyprx.Secrets

Overview

Generates cryptographically secure passwords/secrets and provides a secret masker.

Usage

using Hyprx.Secrets;

var sg = new SecretGenerator().AddDefaults();
var pw = sg.Generate(16);
var ss = sg.GenerateAsSecretString(16);
var pwb = sg.GenerateAsBytes();

sg = new SecretGenerator().Add(SecretCharacterSets.Digits);
sg.SetValidator(_ => true);

Console.WriteLine(sg.Generate(4)); // new pin

var masker = new SecretMasker();
masker.Add(pw);

Console.WriteLine(masker.Mask($"My password is {pw}")); // My password is *****

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 (3)

Showing the top 3 NuGet packages that depend on Hyprx.Secrets:

Package Downloads
Hyprx.Rex.Pipelines

Hyprx.Rex.Pipelines provides the core pipelines that execute rex tasks, jobs, and deployments.

Hyprx.Rex.Console

The Hyprx.Rex.Console package enables you to create a cli task runner or a make-like experience in .NET within console projects or using `dotnet run app.cs` (single files).

Hyprx.DotEnv.Expansion

Expand variables and perform command substitution in dotenv (.env) files.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.0-alpha.3 130 7/10/2025
0.0.0-alpha.2 119 7/10/2025
0.0.0-alpha.1 123 6/25/2025
0.0.0-alpha.0 130 6/17/2025

# Hyprx.Secrets Changelog

## 0.0.0-alpha.0

- Add a secret/password generator.
- Add a secret masker for masking passwords in strings.