Masuit.Tools is a comprehensive static utility library for .NET and ASP.NET Core development. It provides a broad collection of reusable helper methods and infrastructure components that cover common programming tasks without requiring dependency injection or instance management. The library is organized as flat utility classes, making its functionality directly accessible from anywhere in a project.
The toolkit distinguishes itself through a wide range of integrated capabilities that go beyond typical utility libraries. It includes a multithreaded range-request file downloader with pause and resume support, a perceptual hash engine for comparing image similarity, and a Snowflake-based distributed ID generator for creating unique, ordered identifiers. The library also offers zero-width character steganography for hiding text within ordinary strings, an expression tree composition engine for building dynamic LINQ queries, and an attribute-driven service registration system that automatically scans assemblies and registers classes in the ASP.NET Core dependency injection container.
Beyond these differentiators, the library covers a broad surface of everyday development needs. It provides utilities for file compression and decompression across multiple archive formats, IP address resolution with geographic lookup, JSON serialization with multiple alias binding per property, and request body binding that accepts data from query strings, forms, or JSON interchangeably. The toolkit also includes data validation for common formats, collection manipulation with safe operations and duplicate removal, date and time calculations including Chinese lunar calendar conversion, and text comparison with diff and patch generation. Additional capabilities span cryptography with symmetric and asymmetric encryption, CAPTCHA image generation, HTML sanitization for XSS prevention, malware scanning via Windows Defender, and system monitoring for real-time hardware metrics.
The library is distributed as a NuGet package and integrates directly into .NET projects, with documentation covering its static utility classes and ASP.NET Core integration helpers.