BosonWare.Runtime
2.3.0
dotnet add package BosonWare.Runtime --version 2.3.0
NuGet\Install-Package BosonWare.Runtime -Version 2.3.0
<PackageReference Include="BosonWare.Runtime" Version="2.3.0" />
<PackageVersion Include="BosonWare.Runtime" Version="2.3.0" />
<PackageReference Include="BosonWare.Runtime" />
paket add BosonWare.Runtime --version 2.3.0
#r "nuget: BosonWare.Runtime, 2.3.0"
#:package BosonWare.Runtime@2.3.0
#addin nuget:?package=BosonWare.Runtime&version=2.3.0
#tool nuget:?package=BosonWare.Runtime&version=2.3.0
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
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 | 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 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. |
-
net8.0
- UnmanagedMemory (>= 2.6.1)
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.
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.