RuoVea.ExUtil
2.1.1.1
See the version list below for details.
dotnet add package RuoVea.ExUtil --version 2.1.1.1
NuGet\Install-Package RuoVea.ExUtil -Version 2.1.1.1
<PackageReference Include="RuoVea.ExUtil" Version="2.1.1.1" />
paket add RuoVea.ExUtil --version 2.1.1.1
#r "nuget: RuoVea.ExUtil, 2.1.1.1"
// Install RuoVea.ExUtil as a Cake Addin #addin nuget:?package=RuoVea.ExUtil&version=2.1.1.1 // Install RuoVea.ExUtil as a Cake Tool #tool nuget:?package=RuoVea.ExUtil&version=2.1.1.1
RuoVea.ExUtil
介绍
Common AES加解密工具 UtilAes、RSA工具类 UtilRsa、OrderNum 生成 Salt 盐、枚举扩展属性 EnumExtension、
链接错误: ConnctionException、参数错误处理 ParamiterException 、异常信息扩展 ExceptionEx、异常信息封装类 ExceptionMessage
CommonUtils:根据文件类型分配路径、获得IP地址、获得IP地址、获取 User-Agent 所有信息、客户端IP地址、得到客户端IP地址、得到局域网IP地址、请求UserAgent信息、请求Url、得到操作系统版本、UserAgent信息、远程路径Encode处理、标准化远程目录路径、获取请求的ip4、
Extensions: 类型转换扩展、日期时间扩展、json序列反序列化、可空类型、验证扩展、Linq扩展
Const: 汉字及拼音首字母、常用简体汉字、字符串工具方法
时间操作: Time、UnixTime
Validate:邮箱、时间、电话、身份证、手机、最大长度、数值、不可空、网址、微信
xml文件操作
TreeBuildUtil树的构建
字符串验证帮助类 ValidatorUtil:验证输入字符串为数字(带小数)、验证中国电话格式是否有效,格式010-85849685、验证输入字符串为电话号码、验证是否是有效传真号码、
验证手机号是否合法、验证身份证是否有效、验证是否是有效邮箱地址、验证是否只含有汉字、是否有多余的字符 防止SQL注入、是否由数字、26个英文字母或者下划线組成的字串、
由数字、26个英文字母、汉字組成的字串、由数字、26个英文字母組成的字串、判断用户输入是否为日期
获取服务器信息 ExMachine
系统Shell命令 ExShell
图片工具类 ExImage 保存二进制流到文件、删除文件夹里面所有的文件、无损压缩图片
字符串中间部分字符替换成特殊字符、枚举校验
HttpUtils:HttpPost、HttpGet
使用示例
Stopwatch计时器
计时器开始
Stopwatch stopwatch = TimerStart();
计时器结束
double milliseconds=TimerEnd(stopwatch);
#region 删除数组中的重复项
public static string[] RemoveDup(string[] values)
相关配置文件
Product | Versions 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. |
.NET Framework | net45 is compatible. net451 was computed. net452 is compatible. net46 is compatible. net461 is compatible. net462 is compatible. net463 was computed. net47 is compatible. net471 is compatible. net472 is compatible. net48 is compatible. net481 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. |
-
.NETFramework 4.5
- Newtonsoft.Json (>= 13.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETFramework 4.5.2
- Newtonsoft.Json (>= 13.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETFramework 4.6
- Newtonsoft.Json (>= 13.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETFramework 4.6.1
- Newtonsoft.Json (>= 13.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETFramework 4.6.2
- Newtonsoft.Json (>= 13.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETFramework 4.7
- Newtonsoft.Json (>= 13.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETFramework 4.7.1
- Newtonsoft.Json (>= 13.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETFramework 4.7.2
- Newtonsoft.Json (>= 13.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETFramework 4.8
- Newtonsoft.Json (>= 13.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETFramework 4.8.1
- Newtonsoft.Json (>= 13.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETStandard 2.1
- Newtonsoft.Json (>= 13.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on RuoVea.ExUtil:
Package | Downloads |
---|---|
RuoVea.ExFilter
注入 进行全局的异常日志收集、执行操作日志、参数验证,支持简体中文、繁体中文、粤语、日语、法语、英语. services.ExceptionSetup();// 注入 全局错误日志处 services.ExceptionSetup(ExceptionLog actionOptions);// 注入 全局错误日志处 services.ExceptionSetup(builder.Configuration.GetSection("AopOption:ExceptionLog"));// 注入 全局错误日志处 services.RequestActionSetup();// 注入 请求日志拦截 [执行操作日志、参数验证 ] services.RequestActionSetup(RequestLog actionOptions);// 注入 请求日志拦截 [执行操作日志、参数验证 ] services.RequestActionSetup(builder.Configuration.GetSection("AopOption:RequestLog"));// 注入 请求日志拦截 [执行操作日志、参数验证 ] services.ResourceSetup();//对资源型信息进行过滤 services.ResultSetup();//对结果进行统一 services.ApISafeSetup(AppSign actionOptions);//接口安全校验 services.ApISafeSetup(builder.Configuration.GetSection("AopOption:AppSign"));//接口安全校验 services.ApISignSetup(AppSign actionOptions);//签名验证 ( appKey + signKey + timeStamp + data ); services.ApISignSetup(builder.Configuration.GetSection("AopOption:AppSign"));//签名验证 ( appKey + signKey + timeStamp + data ); services.AddValidateSetup();//模型校验 services.AddUiFilesZipSetup();//将前端UI压缩文件进行解压 不进行接口安全校验 -> NonAplSafeAttribute 不签名验证 -> NonAplSignAttribute 不进行全局的异常日志收集 -> NonExceptionAttribute 不对资源型信息进行过滤 -> NonResourceAttribute 不对结果进行统一 -> NonRestfulResultAttribute |
|
RuoVea.ExSugar
Sqlsugar扩展 快速注入,支持简体中文、繁体中文、粤语、日语、法语、英语.使用方式:service.AddSqlsugar();继承RestFulLog 重写异常日志,操作日志,差异日志 |
|
RuoVea.ExWeb
CorsUrls、IPLimit、SafeIps、Jwt 配置 |
|
RuoVea.ExGlobal
web 注入 全局错误日志、操作日志记录 |
|
PBKDF2.Key
PBKDF2(Password-Based Key Derivation Function)是一个用来导出密钥的函数,常用于生成加密的密码。它的基本原理是通过一个伪随机函数(例如HMAC函数),把明文和一个盐值作为输入参数,然后重复进行运算,并最终产生密钥。如果重复的次数足够大,破解的成本就会变得很高。而盐值的添加也会增加“彩虹表”攻击的难度。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.1.1 | 107 | 10/31/2024 |
8.0.1 | 207 | 8/28/2024 |
8.0.0.1 | 292 | 12/1/2023 |
8.0.0 | 138 | 11/24/2023 |
7.0.1.1 | 93 | 10/31/2024 |
7.0.1 | 272 | 8/28/2024 |
7.0.0 | 184 | 7/23/2024 |
6.0.14.1 | 1,297 | 10/31/2024 |
6.0.14 | 1,509 | 8/28/2024 |
6.0.13.2 | 449 | 12/1/2023 |
6.0.13.1 | 717 | 11/23/2023 |
6.0.13 | 1,442 | 3/11/2023 |
6.0.12 | 1,257 | 9/30/2022 |
6.0.11 | 410 | 9/30/2022 |
6.0.10 | 377 | 9/30/2022 |
6.0.9 | 400 | 9/30/2022 |
6.0.7 | 376 | 9/30/2022 |
6.0.6 | 391 | 9/30/2022 |
6.0.5 | 1,029 | 9/14/2022 |
6.0.4 | 420 | 9/8/2022 |
6.0.3 | 407 | 8/24/2022 |
6.0.2 | 414 | 8/16/2022 |
6.0.0 | 3,866 | 2/9/2022 |
5.0.20.1 | 116 | 11/1/2024 |
5.0.20 | 222 | 8/28/2024 |
5.0.19.1 | 274 | 8/8/2024 |
5.0.19 | 3,678 | 11/25/2021 |
5.0.18 | 463 | 11/22/2021 |
5.0.17 | 306 | 11/22/2021 |
5.0.16 | 727 | 11/19/2021 |
5.0.15 | 901 | 11/5/2021 |
5.0.13 | 836 | 11/3/2021 |
5.0.12 | 315 | 11/2/2021 |
5.0.11 | 362 | 11/1/2021 |
5.0.10 | 519 | 10/12/2021 |
5.0.9 | 334 | 10/6/2021 |
5.0.8 | 336 | 10/5/2021 |
5.0.7 | 1,158 | 9/30/2021 |
5.0.6 | 485 | 9/29/2021 |
5.0.5 | 316 | 9/29/2021 |
5.0.4 | 392 | 9/29/2021 |
5.0.3 | 375 | 9/28/2021 |
5.0.2 | 379 | 9/28/2021 |
5.0.1 | 438 | 9/27/2021 |
5.0.0 | 435 | 9/27/2021 |
2.1.2.1 | 66 | 11/1/2024 |
2.1.2 | 100 | 8/28/2024 |
2.1.1.1 | 137 | 11/24/2023 |
2.0.0.1 | 68 | 11/1/2024 |
2.0.0 | 92 | 9/22/2024 |