HashBrowns 3.0.1
See the version list below for details.
dotnet add package HashBrowns --version 3.0.1
NuGet\Install-Package HashBrowns -Version 3.0.1
<PackageReference Include="HashBrowns" Version="3.0.1" />
paket add HashBrowns --version 3.0.1
#r "nuget: HashBrowns, 3.0.1"
// Install HashBrowns as a Cake Addin #addin nuget:?package=HashBrowns&version=3.0.1 // Install HashBrowns as a Cake Tool #tool nuget:?package=HashBrowns&version=3.0.1
HashBrowns
HashBrowns is a library to help simplify encryption within .Net.
Basic Usage
The system relies on an IoC wrapper called Canister. While Canister has a built in IoC container, it's purpose is to actually wrap your container of choice in a way that simplifies setup and usage for other libraries that don't want to be tied to a specific IoC container. HashBrowns uses it to detect and pull in various info. As such you must set up Canister in order to use HashBrowns:
Canister.Builder.CreateContainer(new List<ServiceDescriptor>())
.RegisterHashBrowns()
.Build();
This is required prior to using the CryptoManager or extension methods class for the first time. Once Canister is set up, you can use the CryptoManager class:
var Instance = Canister.Builder.Bootstrapper.Resolve<CryptoManager>().Encrypt(...);
However instead of having the IoC container create the class, you can also use the extension methods found in the HashBrowns namespace:
var EncryptedData = "My string that I want to encrypt".Encrypt(Key, Salt, HashingAlgorithm, NumberIterations, InitialVector, KeySize, EncryptionAlgorithm);
Similarly you can decrypt:
var DecryptedData = EncryptedData.Decrypt(Key, Salt, HashingAlgorithm, NumberIterations, InitialVector, KeySize, EncryptionAlgorithm);
Also hashing is available:
var MyHashedValue = "Example data".Hash(HashingAlgorithm);
Installation
The library is available via Nuget with the package name "HashBrowns". To install it run the following command in the Package Manager Console:
Install-Package HashBrowns
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. |
-
net6.0
- BigBook (>= 5.0.4)
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 |
---|---|---|
4.0.0 | 73 | 11/24/2024 |
3.0.100 | 76 | 11/12/2024 |
3.0.99 | 93 | 11/11/2024 |
3.0.98 | 68 | 11/5/2024 |
3.0.97 | 75 | 11/4/2024 |
3.0.96 | 75 | 10/30/2024 |
3.0.95 | 66 | 10/29/2024 |
3.0.94 | 70 | 10/29/2024 |
3.0.93 | 74 | 10/15/2024 |
3.0.92 | 84 | 10/10/2024 |
3.0.91 | 83 | 10/9/2024 |
3.0.90 | 96 | 8/29/2024 |
3.0.89 | 106 | 8/26/2024 |
3.0.88 | 121 | 8/23/2024 |
3.0.87 | 119 | 8/22/2024 |
3.0.86 | 121 | 8/21/2024 |
3.0.85 | 112 | 8/19/2024 |
3.0.84 | 119 | 8/14/2024 |
3.0.83 | 60 | 8/2/2024 |
3.0.82 | 74 | 7/25/2024 |
3.0.81 | 85 | 7/10/2024 |
3.0.80 | 103 | 6/26/2024 |
3.0.79 | 94 | 6/25/2024 |
3.0.78 | 101 | 6/18/2024 |
3.0.77 | 100 | 6/17/2024 |
3.0.76 | 95 | 6/14/2024 |
3.0.75 | 92 | 6/13/2024 |
3.0.74 | 99 | 6/12/2024 |
3.0.73 | 99 | 5/30/2024 |
3.0.72 | 100 | 5/29/2024 |
3.0.71 | 96 | 5/16/2024 |
3.0.70 | 104 | 5/15/2024 |
3.0.69 | 116 | 5/7/2024 |
3.0.68 | 113 | 5/6/2024 |
3.0.67 | 75 | 5/2/2024 |
3.0.66 | 101 | 5/1/2024 |
3.0.65 | 126 | 4/30/2024 |
3.0.64 | 99 | 4/29/2024 |
3.0.63 | 119 | 4/11/2024 |
3.0.62 | 113 | 4/10/2024 |
3.0.61 | 126 | 3/29/2024 |
3.0.60 | 110 | 3/28/2024 |
3.0.59 | 132 | 3/15/2024 |
3.0.58 | 127 | 3/14/2024 |
3.0.57 | 102 | 3/13/2024 |
3.0.56 | 113 | 3/8/2024 |
3.0.55 | 114 | 3/7/2024 |
3.0.54 | 102 | 3/6/2024 |
3.0.53 | 125 | 3/5/2024 |
3.0.52 | 124 | 3/4/2024 |
3.0.51 | 130 | 2/28/2024 |
3.0.50 | 113 | 2/27/2024 |
3.0.49 | 126 | 2/23/2024 |
3.0.48 | 120 | 2/22/2024 |
3.0.47 | 123 | 2/21/2024 |
3.0.46 | 117 | 2/20/2024 |
3.0.45 | 102 | 2/15/2024 |
3.0.44 | 124 | 2/9/2024 |
3.0.43 | 124 | 2/7/2024 |
3.0.42 | 123 | 2/6/2024 |
3.0.41 | 108 | 2/5/2024 |
3.0.40 | 104 | 1/31/2024 |
3.0.39 | 107 | 1/30/2024 |
3.0.38 | 98 | 1/23/2024 |
3.0.37 | 97 | 1/22/2024 |
3.0.36 | 131 | 1/11/2024 |
3.0.35 | 171 | 12/13/2023 |
3.0.34 | 138 | 12/12/2023 |
3.0.33 | 155 | 11/23/2023 |
3.0.32 | 131 | 11/20/2023 |
3.0.31 | 150 | 11/17/2023 |
3.0.30 | 127 | 11/16/2023 |
3.0.29 | 120 | 11/7/2023 |
3.0.28 | 128 | 11/6/2023 |
3.0.27 | 135 | 10/31/2023 |
3.0.26 | 126 | 10/30/2023 |
3.0.25 | 136 | 10/25/2023 |
3.0.24 | 155 | 10/11/2023 |
3.0.23 | 152 | 9/25/2023 |
3.0.22 | 134 | 9/19/2023 |
3.0.21 | 142 | 9/18/2023 |
3.0.20 | 155 | 9/13/2023 |
3.0.19 | 135 | 9/12/2023 |
3.0.18 | 146 | 9/11/2023 |
3.0.17 | 125 | 9/6/2023 |
3.0.16 | 136 | 9/5/2023 |
3.0.15 | 163 | 9/4/2023 |
3.0.14 | 153 | 9/1/2023 |
3.0.13 | 139 | 8/31/2023 |
3.0.12 | 163 | 8/30/2023 |
3.0.11 | 156 | 8/29/2023 |
3.0.10 | 186 | 8/28/2023 |
3.0.9 | 180 | 8/22/2023 |
3.0.8 | 160 | 8/17/2023 |
3.0.7 | 178 | 8/9/2023 |
3.0.6 | 168 | 8/8/2023 |
3.0.5 | 160 | 8/7/2023 |
3.0.4 | 168 | 7/25/2023 |
3.0.3 | 148 | 7/14/2023 |
3.0.2 | 186 | 7/13/2023 |
3.0.1 | 191 | 7/12/2023 |
3.0.0 | 308 | 12/12/2022 |
2.0.7 | 459 | 6/6/2022 |
2.0.5 | 456 | 1/11/2022 |
2.0.3 | 445 | 1/7/2021 |
2.0.2 | 572 | 9/13/2020 |
2.0.1 | 500 | 3/25/2020 |
2.0.0 | 518 | 12/23/2019 |
1.0.3 | 780 | 11/8/2018 |
1.0.2 | 700 | 11/6/2018 |