BosonWare.Runtime 2.3.0

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

BosonWare.Runtime

A lightweight .NET cryptography and encoding utility library providing essential functionality for secure data handling.

Features

  • Base58 Encoding/Decoding

    • Standard Base58 implementation
    • Configurable encoding/decoding pipeline
  • Cryptography Services

    • AES encryption/decryption
    • RSA encryption with PEM support
    • Ephemeral key generation
    • PBKDF2 key derivation
  • Binary Parsing

    • Integer parsing (16/32/64 bit)
    • Floating point parsing (32/64 bit)
  • Text User Interface (TUI) Utilities

    • Rich console output with ANSI color markup (e.g., [GREEN], [RED], [DIM])
    • Thread-safe console writing and reading
    • Animated console output for enhanced user feedback
    • Secure password input with optional confirmation
    • Built-in logging helpers for info, warning, and error messages

Installation

This package targets .NET 8.0+.

dotnet add package BosonWare.Runtime

Usage Examples

Encryption

// Base58 encoding
var data = Encoding.UTF8.GetBytes("Hello, World!");
var encoded = Base58.EncodeData(data);

// AES encryption
var key = EphemeralKeys.Get("sessionKey");
using var aes = new AesEncryptionService(key);
var encrypted = aes.Encrypt(data);

TUI

// Write a message with ANSI markup.
SmartConsole.WriteLine("[red]This text is red[/]\n[green]This text is green[/]");

// Converting markup to raw ANSI text.
var txt = AnsiCodes.ProcessMarkup("[bright]This is a test of the[/] [red]ANSI[/] codes in [green]BosonWare.Runtime[/].");

Console.WriteLine(txt);

More Documentation

APPLICATION.README.md

CACHE.README.md

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Developed by CodingBoson at BosonWare, Technologies.

Release Notes

Add memory-optimized Base58 encoding implementation

Introduces a new optimized Base58 encoder/decoder that uses unsafe memory operations for better performance.

Implementation includes:

  • Memory-efficient encoding and decoding using UnsafeMemory
  • Leading zero handling and whitespace trimming
  • Proper error handling for invalid Base58 data

Adds supporting JetBrains annotation attributes for better code analysis and documentation.

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 was computed.  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 (1)

Showing the top 1 NuGet packages that depend on BosonWare.Runtime:

Package Downloads
BosonWare.TerminalApp

BosonWare.TerminalApp is a modern, extensible .NET terminal application framework designed to simplify the creation of interactive command-line tools. It provides a robust command registry, built-in commands, command history, and flexible parsing utilities, making it ideal for building rich terminal experiences.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.0 160 9/1/2025
2.2.1 233 8/5/2025
2.2.0 232 8/5/2025
2.1.0 277 7/19/2025
2.0.1 137 7/12/2025
1.2.0 91 7/5/2025
1.1.0 156 7/3/2025
1.0.1 154 6/29/2025
1.0.0 157 6/23/2025

Add memory-optimized Base58 encoding implementation

     Introduces a new optimized Base58 encoder/decoder that uses unsafe memory operations for better performance. Implementation includes:

       - Memory-efficient encoding and decoding using UnsafeMemory
       - Leading zero handling and whitespace trimming
       - Proper error handling for invalid Base58 data

     Adds supporting JetBrains annotation attributes for better code analysis and documentation.