VOOZH about

URL: https://www.nuget.org/packages/SweetMeSoft.Tools/

⇱ NuGet Gallery | SweetMeSoft.Tools 1.10.132




👁 Image
SweetMeSoft.Tools 1.10.132

dotnet add package SweetMeSoft.Tools --version 1.10.132
 
 
NuGet\Install-Package SweetMeSoft.Tools -Version 1.10.132
 
 
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="SweetMeSoft.Tools" Version="1.10.132" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SweetMeSoft.Tools" Version="1.10.132" />
 
Directory.Packages.props
<PackageReference Include="SweetMeSoft.Tools" />
 
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 SweetMeSoft.Tools --version 1.10.132
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SweetMeSoft.Tools, 1.10.132"
 
 
#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 SweetMeSoft.Tools@1.10.132
 
 
#: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=SweetMeSoft.Tools&version=1.10.132
 
Install as a Cake Addin
#tool nuget:?package=SweetMeSoft.Tools&version=1.10.132
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SweetMeSoft.Tools

Library with a set of reusable tools and utilities for common tasks.

Description

SweetMeSoft.Tools is a library for .NET Standard 2.1 that groups a collection of static helper classes to perform a variety of tasks, from type conversions and validations to email sending and data encryption.

Main Components

Converters

Methods for data type conversions, handling local culture for decimal separators.

  • StringToDouble(string)
  • StringToFloat(string)
  • StringToDecimal(string)
  • StringToInt(string)
  • IntToString(int)
  • DecimalToString(decimal)
  • StringToBool(string)

Email

A class for sending emails via SMTP.

  • Send(EmailOptions): Sends an email configured through an EmailOptions object.
    • Supports preconfigured hosts like Gmail, Outlook and Webmail.
    • Allows normal and embedded (linked) attachments.
    • Requires EmailOptions.Sender and EmailOptions.Password to be set statically before use.

Reflections

Utilities that use reflection.

  • CleanVirtualProperties<T>(T entity): Removes circular references in objects (commonly database entities) by serializing and deserializing the object with ReferenceLoopHandling.Ignore. Very useful for preparing data to be sent through an API.

Security

Methods for password hashing and reversible encryption.

  • HashPasswordIrreversible(string): Creates a hash of a password using PBKDF2 with a salt.
  • VerifyHashedPasswordIrreversible(string, string): Compares a plain text password with its hash.
  • CipherPasswordReversible(string, key, iv): Encrypts text using AES.
  • DecipherPassword(string, key, iv): Decrypts encrypted text with AES.

Utils

A set of miscellaneous utilities.

  • GetException(Exception): Gets the innermost exception message.
  • GetRandomNumber(int): Generates a string of N random digits.
  • WriteToAPath(StreamFile, path): Saves a StreamFile to a disk path.
  • StringMatchCompare(list, chain, threshold): Performs a "fuzzy" string comparison to find similarities.
  • MinifyJson(string): Removes whitespace from a JSON string.

Validators

Common validation methods.

  • IsValidEmail(string): Verifies if a string has a valid email format.
  • IsValidPassword(string): Verifies if a password meets complexity requirements (uppercase, lowercase, numbers, symbols and minimum length).

Dependencies

Installation

dotnet add package SweetMeSoft.Tools

Usage Example

using SweetMeSoft.Tools;

// --- Validation ---
bool isValid = Validators.IsValidEmail("test@example.com");

// --- Security ---
string password = "MySecurePassword123!";
string hashedPassword = Security.HashPasswordIrreversible(password);
bool isPasswordCorrect = Security.VerifyHashedPasswordIrreversible(hashedPassword, password);

// --- Converters ---
int number = Converters.StringToInt("123.45"); // Results in 123

License

This project is under the MIT license.

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 netstandard2.1 is compatible. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on SweetMeSoft.Tools:

Package Downloads
SweetMeSoft.Files

SweetMeSoft Files Library is a compilation of ways to read and generate different types of files like Excel, CSV, TXT, ZIP and more

SweetMeSoft.GCP

SweetMeSoft GCP Library is a compilation of basic tools to connect with GCP services

SweetMeSoft.Middleware

SweetMeSoft Middleware Library is a compilation of different middlewares for .Net core

SweetMeSoft.Captcha

SweetMeSoft Captcha Library is for solve the most of captchas automatically

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.10.132 320 2/19/2026
1.10.131 731 11/20/2025
1.10.130 814 9/17/2025
1.10.129 733 1/19/2025
1.10.128 792 8/31/2024
1.10.127 446 4/3/2024
1.10.126 263 4/3/2024
1.10.125 232 4/3/2024
1.10.124 270 1/30/2024
1.10.123 394 11/27/2023
1.10.122 314 11/1/2023
1.10.121 216 11/1/2023
1.10.120 398 10/12/2023
1.10.119 433 7/7/2023
1.10.118 361 7/1/2023
1.10.117 301 6/12/2023
1.10.115 326 6/10/2023
1.10.114 317 6/7/2023
1.10.1 248 10/12/2023 1.10.1 is deprecated because it has critical bugs.
Loading failed