Hestia.Security
1.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Hestia.Security --version 1.0.2
NuGet\Install-Package Hestia.Security -Version 1.0.2
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="Hestia.Security" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Hestia.Security --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Hestia.Security, 1.0.2"
#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 Hestia.Security as a Cake Addin #addin nuget:?package=Hestia.Security&version=1.0.2 // Install Hestia.Security as a Cake Tool #tool nuget:?package=Hestia.Security&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Hestia.Security
AES
AES_CBC_PKCS7PADDING
- KEY:16 位
- IV:16 位
- BLOCK:16 位
- 补位:自动补位
- 明文:无限制
//加密
byte[] encrypted = Hestia.Security.CRYPTO.AES_CBC_PKCS7PADDING_ENCRYPT(byte[] key,byte[] iv,byte[] decrypted);
//解密
byte[] decrypted = Hestia.Security.CRYPTO.AES_CBC_PKCS7PADDING_DECRYPT(byte[] key,byte[] iv,byte[] encrypted);
AES_CBC_ZEROBYTEPADDING
- KEY:16 位
- IV:16 位
- BLOCK:16 位
- 补位:自动补位
- 明文:无限制
//加密
byte[] encrypted = Hestia.Security.CRYPTO.AES_CBC_ZEROBYTEPADDING_ENCRYPT(byte[] key,byte[] iv,byte[] decrypted);
//解密
byte[] decrypted = Hestia.Security.CRYPTO.AES_CBC_ZEROBYTEPADDING_DECRYPT(byte[] key,byte[] iv,byte[] encrypted);
AES_CBC_NOPADDING
- KEY:16 位
- IV:16 位
- BLOCK:16 位
- 补位:无
- 明文:必须为 BLOCK 的整数倍
//加密
byte[] encrypted = Hestia.Security.CRYPTO.AES_CBC_NOPADDING_ENCRYPT(byte[] key,byte[] iv,byte[] decrypted);
//解密
byte[] decrypted = Hestia.Security.CRYPTO.AES_CBC_NOPADDING_DECRYPT(byte[] key,byte[] iv,byte[] encrypted);
HASH
MD5
byte[] hash = Hestia.Security.HASH.MD5(byte[] data);
SHA1
byte[] hash = Hestia.Security.HASH.SHA1(byte[] data);
SHA256
byte[] hash = Hestia.Security.HASH.SHA256(byte[] data);
SHA384
byte[] hash = Hestia.Security.HASH.SHA384(byte[] data);
SHA512
byte[] hash = Hestia.Security.HASH.SHA512(byte[] data);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Portable.BouncyCastle (>= 1.9.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Hestia.Security:
Package | Downloads |
---|---|
Hestia.Logging.DingTalk
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.