xyToolz 1.3.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package xyToolz --version 1.3.8
                    
NuGet\Install-Package xyToolz -Version 1.3.8
                    
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="xyToolz" Version="1.3.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="xyToolz" Version="1.3.8" />
                    
Directory.Packages.props
<PackageReference Include="xyToolz" />
                    
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 xyToolz --version 1.3.8
                    
#r "nuget: xyToolz, 1.3.8"
                    
#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 xyToolz@1.3.8
                    
#: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=xyToolz&version=1.3.8
                    
Install as a Cake Addin
#tool nuget:?package=xyToolz&version=1.3.8
                    
Install as a Cake Tool

xyToolz

Core utility library of the xy empire. My main goal here is to save some seconds. This provides helper classes for .NET: files, hashing/RSA, JSON/XML, PDF, dates, logging integration, and misc QOL helpers.


Disclaimer

!!! Attention !!! Achtung !!! Uwaga !!! This is my quick and dirty version for personal use, thus it can be a nightmare when it comes to dependency handling... If you prefer the components on their own, there are corresponding NuGets for each component of this toolbox.

For the love of compability, i still let this run in .NET8... Until further notice, this will continue to stay exactly that way! (When i change the framework, i will change the first digit to 2, dont worry about accidentally breaking stuff, lol)


Modules

Security

  • xyHasher — PBKDF2 password hashing, salted hash build/verify, AES key derivation from password.
  • xyRsa — RS256 JWT signing/validation, PEM key loading/export.
  • xyDataProtector — encrypt/decrypt objects, strings, bytes to/from file; test-double override support.

Filesystem

  • xyFiles — async read/write (text, bytes, streams), file inventory, rename/delete, test-double override support.
  • xyDirectoryHelper — directory create/copy/move/rename/clear/delete, compress/extract, folder size, recursive listing, FileSystemWatcher helper.
  • xyPath — path helpers.

Serialization

  • xyJson — generic JSON read/write to file.
  • xyXml — XML (de)serialization.

Chrono

  • xyDate, xyTime — date/time helpers.

Maths

  • xyConversion — type/string conversion helpers.
  • SumOfDigits — digit-sum utility.

Enumerables / Extensions

  • xyList — list helper.
  • Extension methods for string, byte[], List<T>, Dictionary<K,V>.

PDF

  • xyPdf — PDF generation/manipulation (built on PDFsharp/PdfSharpCore).
  • xyCard — internal card/template helper used by xyPdf, not part of the public API.

Fonts

  • AutoResourceFontResolver — font resolution for PDF rendering.

QOL

  • xy — misc static helpers: byte/string conversion, random strings, path normalization, safe parsing, TryCatch wrappers.
  • xyPropertyHelper, xySpiller — misc helpers.

Database (outsourced due to dependencies)

Simple EF Core wrapper: https://www.nuget.org/packages/ExtendedCRUD/

Driver (WIP)

xyWebDriver — Selenium-based browser automation. Currently disabled.

Interfaces - Ignore these!!! Only relevant for internal Unit Tests (due to tomfoolery they cant be internal but need to be visible)

IxyFiles, IxyJson, IxyDataProtector — abstractions used for test-double overrides in the corresponding static classes.


Example

string saltedHash = xyHasher.BuildSaltedHash(HashAlgorithmName.SHA256, "Secure123!", out var salt);
bool valid = xyHasher.VerifyPassword(HashAlgorithmName.SHA256, "Secure123!", saltedHash);

var lines = await xyFiles.ReadLinesAsync("settings.txt");
await xyFiles.SaveToFile("Hello!", "output.txt");

var config = xyJson.ReadFromFile<MyConfig>("settings.json");

Dependencies

Haters will say its not dependency-free. Notable NuGet packages: Newtonsoft.Json, PDFsharp, PdfSharpCore, SixLabors.ImageSharp, Microsoft.IdentityModel.Tokens, System.IdentityModel.Tokens.Jwt, xyLogger, xyMessageFactory.

Logging (xyLog) is provided by the external xyLogger package, not by this repo.


📜 License

Licensed under GNU GPLv3
See: https://www.gnu.org/licenses/gpl-3.0.en.html


👤 Author

Created by the ThrashingLaggard for internal tooling, education, and experiments. https://github.com/ThrashingLaggard


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

Showing the top 3 NuGet packages that depend on xyToolz:

Package Downloads
xyPortHelper

Providing basic operations for ports like: listing open ports and connections open and close ports and connections send messages via TCP or UDP

ExtendedCRUD

CRUD + Pageineering + x

xyDebugConsole

Custom debug console for apps without console

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.16 128 10/30/2026
1.3.15 105 10/30/2026
1.3.14 111 10/30/2026
1.3.13 100 10/30/2026
1.3.12 132 10/9/2026
1.3.11 180 7/29/2026
1.3.10 143 7/29/2026
1.3.9 132 7/29/2026
1.3.8 140 7/29/2026
1.3.7 148 7/29/2026
1.3.6 143 7/29/2026
1.3.5 139 7/29/2026
1.3.4 209 7/15/2026
1.3.3 169 7/15/2026 1.3.3 is deprecated.
1.3.2 268 6/23/2026 1.3.2 is deprecated.
1.3.1 176 5/17/2026 1.3.1 is deprecated.
1.3.0 155 5/17/2026 1.3.0 is deprecated.
1.2.1 166 4/17/2026
1.2.0 186 4/15/2026 1.2.0 is deprecated.
1.1.0 171 3/24/2026
Loading failed