ZayniFramework.Cryptography
2.0.0
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 ZayniFramework.Cryptography --version 2.0.0
NuGet\Install-Package ZayniFramework.Cryptography -Version 2.0.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="ZayniFramework.Cryptography" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ZayniFramework.Cryptography --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ZayniFramework.Cryptography, 2.0.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 ZayniFramework.Cryptography as a Cake Addin #addin nuget:?package=ZayniFramework.Cryptography&version=2.0.0 // Install ZayniFramework.Cryptography as a Cake Tool #tool nuget:?package=ZayniFramework.Cryptography&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Cryptography module example.
Add CryptographySettings section in your app.config or web.config file.
<CryptographySettings symmetricAlgorithmKeyPath="~\ZayniCryptoTest.key">
<AesEncryptor keySize="128"/>
<RijndaelEncryptor blockSize="256" keySize="256"/>
<HashEncryptor needSalt="true"/>
</CryptographySettings>
You will also need to use KeyMaker to generate a symmetric algorithm key. See Source/SDKTools/Zayni.Cryptography.KeyMaker.<br/> Or you can use the DefaultKey.key in ZayniFramework.<br/>
The DeaultKey.key
o6iPM3HirEntMdZqd0t5i7yYOTmJrJon8SHfE87SV6ivxKCxrQu2mkJh7A0rGwqYO0lsLscVsRYbO3a4GoRROm1M9ZX37ECYFAWw
BnUGGlKbmhOIlDLr9MPX3q8IPpRKKCVkbA5K9SsAV0SbttOIZnXODw1KfCpQK0HZCdga80ifSF22OWOVQ8jWd6We9kevcSoUirOF
YFTlBGUJTwaXiXibYn6Nyq2j4cgaE6IQ6XeHyCWQbUgvyUYFWLufCPUhCjhYYt4Me9RArQcLHflT96jY3R3sBbDg2w4EUwqhQJGp
IjNE6RVHPs9vEWUrMJ0mglLg92jyqlGgmSfYPhEkX4T5dAAWTmgBmsoWOf53hVQdcR8lpuRe4FEcHF3xrCV345stc9AjcA21dpRB
tOCJXn1m1f2pu8rONYc2UtvU67ZnUNlAnOgQqNjrv2Urk7JJgt8YTieySgDPEDIcsq2VRRWyoj5SP3jxmF6aEDf5jgw9AJdijqys
Then you can encrypt or decrypt something like:
ISymmetricEncryptor encryptor = SymmetricEncryptorFactory.Create( _encryptMode );
string source = "ABCDEFG_HIJKLMN_OPQRST_UVW_XYZ";
string result = encryptor.Encrypt( source );
string plain = encryptor.Decrypt( result );
You can also use the HASH algorithm like:
string userId = "SomeUserIdHere";
string password = "SomePasswordHere";
IHashEncryptor encryptor = HashEncryptorFactory.Create( "sha256" );
string result = encryptor.HashEncrypt( password, saltKey: userId );
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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. 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.0
- ZayniFramework.Common (>= 2.0.0)
- ZayniFramework.Logging (>= 2.0.0)
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 |
---|---|---|
8.0.142 | 166 | 3/19/2024 |
8.0.141 | 154 | 1/4/2024 |
8.0.140 | 157 | 12/17/2023 |
6.0.138 | 129 | 3/19/2024 |
6.0.137 | 255 | 9/20/2023 |
6.0.136 | 174 | 9/14/2023 |
6.0.135 | 196 | 9/10/2023 |
6.0.134 | 207 | 7/12/2023 |
6.0.133 | 200 | 7/10/2023 |
6.0.132 | 199 | 7/7/2023 |
6.0.131 | 197 | 6/19/2023 |
6.0.130 | 202 | 6/19/2023 |
6.0.129 | 529 | 7/2/2022 |
6.0.128 | 606 | 1/16/2022 |
6.0.127 | 592 | 1/15/2022 |
6.0.126 | 499 | 1/15/2022 |
6.0.125 | 344 | 1/8/2022 |
6.0.125-hotfix1 | 235 | 1/8/2022 |
6.0.124 | 358 | 1/7/2022 |
6.0.123 | 414 | 11/14/2021 |
5.0.129 | 527 | 7/2/2022 |
5.0.128 | 531 | 1/16/2022 |
5.0.125 | 367 | 1/8/2022 |
5.0.124 | 335 | 1/7/2022 |
5.0.123 | 523 | 11/14/2021 |
5.0.122 | 521 | 10/11/2021 |
5.0.121 | 589 | 5/1/2021 |
3.1.137 | 247 | 9/20/2023 |
3.1.136 | 181 | 9/14/2023 |
3.1.135 | 186 | 9/10/2023 |
3.1.134 | 210 | 7/12/2023 |
3.1.133 | 195 | 7/11/2023 |
3.1.132 | 167 | 7/8/2023 |
3.1.131 | 199 | 6/19/2023 |
3.1.130 | 353 | 2/1/2023 |
3.1.129 | 537 | 7/2/2022 |
3.1.128 | 467 | 1/16/2022 |
3.1.125 | 377 | 1/8/2022 |
3.1.124 | 327 | 1/7/2022 |
3.1.123 | 500 | 11/14/2021 |
3.1.122 | 566 | 10/11/2021 |
3.1.121 | 576 | 5/1/2021 |
2.31.120 | 496 | 3/14/2021 |
2.30.115 | 506 | 3/6/2021 |
2.30.114 | 482 | 3/6/2021 |
2.20.101 | 486 | 3/1/2021 |
2.19.3 | 473 | 2/11/2021 |
2.19.2 | 516 | 2/6/2021 |
2.19.1 | 535 | 1/6/2021 |
2.19.0 | 508 | 1/1/2021 |
2.18.3 | 623 | 12/27/2020 |
2.18.2 | 599 | 8/29/2020 |
2.18.1 | 583 | 8/26/2020 |
2.18.0 | 573 | 8/20/2020 |
2.17.135 | 557 | 8/19/2020 |
2.17.134 | 640 | 7/28/2020 |
2.17.133 | 627 | 7/27/2020 |
2.17.132 | 678 | 7/18/2020 |
2.17.131 | 641 | 7/11/2020 |
2.16.130 | 675 | 6/13/2020 |
2.15.128 | 683 | 6/3/2020 |
2.15.127 | 725 | 5/31/2020 |
2.15.126 | 665 | 4/30/2020 |
2.14.122 | 670 | 4/13/2020 |
2.13.100 | 628 | 3/12/2020 |
2.12.51 | 618 | 2/18/2020 |
2.11.50 | 667 | 2/10/2020 |
2.10.44 | 631 | 1/30/2020 |
2.9.43 | 776 | 1/11/2020 |
2.8.42 | 703 | 1/10/2020 |
2.8.41 | 626 | 1/5/2020 |
2.7.40 | 690 | 1/2/2020 |
2.7.39 | 740 | 1/2/2020 |
2.7.38 | 816 | 1/1/2020 |
2.6.37 | 669 | 12/23/2019 |
2.6.35 | 644 | 12/4/2019 |
2.6.1 | 605 | 12/2/2019 |
2.6.0 | 638 | 11/28/2019 |
2.5.2 | 843 | 11/26/2019 |
2.5.1 | 712 | 11/12/2019 |
2.5.0 | 655 | 11/9/2019 |
2.4.3 | 659 | 10/16/2019 |
2.4.2 | 706 | 10/16/2019 |
2.4.1 | 724 | 9/20/2019 |
2.3.113 | 462 | 3/6/2021 |
2.3.112 | 486 | 3/6/2021 |
2.3.28 | 723 | 9/19/2019 |
2.3.27 | 688 | 8/30/2019 |
2.3.26 | 697 | 8/20/2019 |
2.3.25 | 691 | 8/12/2019 |
2.3.22 | 716 | 7/31/2019 |
2.3.21 | 722 | 7/20/2019 |
2.3.20 | 730 | 6/22/2019 |
2.3.19 | 769 | 6/14/2019 |
2.3.18 | 751 | 6/13/2019 |
2.3.17 | 707 | 6/13/2019 |
2.3.15 | 774 | 6/8/2019 |
2.3.14 | 732 | 6/8/2019 |
2.3.13 | 779 | 5/30/2019 |
2.3.12 | 626 | 5/24/2019 |
2.3.11 | 610 | 5/24/2019 |
2.3.10 | 639 | 5/21/2019 |
2.3.9 | 626 | 5/9/2019 |
2.3.8 | 640 | 5/8/2019 |
2.3.7 | 675 | 4/30/2019 |
2.3.6 | 731 | 4/23/2019 |
2.3.5 | 726 | 4/19/2019 |
2.3.4 | 670 | 4/18/2019 |
2.3.3 | 685 | 4/17/2019 |
2.3.2 | 659 | 4/6/2019 |
2.3.1 | 753 | 12/15/2018 |
2.3.0 | 815 | 12/7/2018 |
2.2.6 | 757 | 11/25/2018 |
2.2.1 | 761 | 11/17/2018 |
2.2.0 | 763 | 11/16/2018 |
2.1.0 | 818 | 11/15/2018 |
2.0.1 | 814 | 11/6/2018 |
2.0.0 | 847 | 11/4/2018 |