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 73 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 92 12/14/2023 2.6.0-rc.2 is deprecated because it is no longer maintained.
2.6.0-rc.1 100 12/14/2023 2.6.0-rc.1 is deprecated because it is no longer maintained.
2.5.4 184 5/22/2023
2.5.3 275 2/24/2023
2.5.2 439 9/7/2022
2.5.1 386 9/7/2022
2.5.0 401 9/5/2022
2.4.4 415 8/5/2022
2.4.3 421 8/2/2022
2.4.2 413 7/27/2022
2.4.1 403 7/25/2022
2.4.0 444 7/11/2022
2.2.0 442 6/20/2022
2.1.1 415 6/14/2022
2.1.0 442 5/7/2022
2.0.0 423 4/29/2022
1.6.3 445 6/14/2022
1.6.2.8 455 4/29/2022
1.6.2.7 474 4/21/2022
1.6.2.6 441 3/17/2022
1.6.2.4 324 12/17/2021
1.6.2.3 317 12/13/2021
1.6.2.2 299 12/2/2021
1.6.2.1 364 11/15/2021
1.6.2 348 11/2/2021
1.6.1.1 378 10/25/2021
1.6.1 345 10/22/2021
1.6.0.1 364 9/24/2021
1.6.0 346 9/17/2021
1.5.8.1 350 9/15/2021
1.5.7 542 9/10/2021
1.5.6 395 9/10/2021
1.5.5 372 9/9/2021
1.5.4 368 9/5/2021
1.5.3 349 9/3/2021
1.5.2 337 9/3/2021
1.5.1 349 9/3/2021
1.5.0 339 9/2/2021
1.4.3 355 9/2/2021
1.4.2 330 9/2/2021
1.4.1 322 9/2/2021
1.4.0 359 8/24/2021
1.3.0 351 8/24/2021