Yoko.Tool 1.4.0

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

// Install Yoko.Tool as a Cake Tool
#tool nuget:?package=Yoko.Tool&version=1.4.0                

一般常用工具箱

💎 主要功能

❄ 雪花Id优化版

❄ 值类型转换

❄ 哈希加密与验证

❄ ·········(还没想好)

💎 使用方法

❄ 包管理器 Install-Package Yoko.Tool -Version 1.4.0

❄ Net命令行 dotnet add package Yoko.Tool --version 1.4.0

💎 雪花ID

💎 值类型转换

💧 string、decimal、double 转 int "目标".ToInt32()

💧 string 转 bool ToBool

💧 string 转 long ToLong

💧 string、decimal、int 转 double ToDouble

💧 string 、double、int 转 decimal ToDecimal

💧 字符串 转 时间 ToDateTime

💧 分割逗号的字符串为List[]、string[] SplitCsv

💧 分割逗号的字符串为int[] SplitCsvToInt

💧 string数组转int数组 ToIntList

💧 过滤字符串中的/n,/t,/r ToJsonString

💧 替换字符串中的"为',一般用于写入数据库的json ToDataBaseString

💧 去除图片地址中的不正常字符\n、\ ToImgString

💧 DateTime转换成开始时间00:00:00 ToStartTime

💧 DateTime转换成结束时间23:59:59 ToEndTime

💧 DateTime时间转Unix时间戳(默认精确到毫秒13位) ToUnixTime

💧 DateTime时间转Unix时间戳(默认精确到秒10位) ToUnixTimeS

💧 Unix时间戳转DateTime本地时间(yyyy/MM/dd hh:MM:ss) ToLocalTime


💎 哈希加密与验证

  • 生成密码由5部分组成 💧 标识头:cadre 💧 迭代:64000 💧 哈希大小:18 💧 salt值 💧 哈希值
  • 值常表现为 cadre:64000:18:salt值:哈希值

🔍 生成加密密码 Create(password,IsText);

🔍 验证密码 PassWordIsTrue(password,goodHash,IsText);

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

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0-beta.1 75 4/22/2024
2.6.0-rc.3 103 12/14/2023 2.6.0-rc.3 is deprecated because it is no longer maintained.
2.6.0-rc.2 93 12/14/2023 2.6.0-rc.2 is deprecated because it is no longer maintained.
2.6.0-rc.1 102 12/14/2023 2.6.0-rc.1 is deprecated because it is no longer maintained.
2.5.4 191 5/22/2023
2.5.3 277 2/24/2023
2.5.2 443 9/7/2022
2.5.1 388 9/7/2022
2.5.0 403 9/5/2022
2.4.4 417 8/5/2022
2.4.3 425 8/2/2022
2.4.2 417 7/27/2022
2.4.1 407 7/25/2022
2.4.0 448 7/11/2022
2.2.0 446 6/20/2022
2.1.1 419 6/14/2022
2.1.0 446 5/7/2022
2.0.0 427 4/29/2022
1.6.3 449 6/14/2022
1.6.2.8 459 4/29/2022
1.6.2.7 478 4/21/2022
1.6.2.6 445 3/17/2022
1.6.2.4 328 12/17/2021
1.6.2.3 321 12/13/2021
1.6.2.2 303 12/2/2021
1.6.2.1 368 11/15/2021
1.6.2 352 11/2/2021
1.6.1.1 382 10/25/2021
1.6.1 349 10/22/2021
1.6.0.1 368 9/24/2021
1.6.0 350 9/17/2021
1.5.8.1 358 9/15/2021
1.5.7 547 9/10/2021
1.5.6 399 9/10/2021
1.5.5 376 9/9/2021
1.5.4 372 9/5/2021
1.5.3 353 9/3/2021
1.5.2 341 9/3/2021
1.5.1 353 9/3/2021
1.5.0 343 9/2/2021
1.4.3 359 9/2/2021
1.4.2 334 9/2/2021
1.4.1 326 9/2/2021
1.4.0 363 8/24/2021
1.3.0 355 8/24/2021