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 |
---|---|---|
3.0.63 | 87 | 4/11/2024 |
3.0.62 | 77 | 4/10/2024 |
3.0.61 | 87 | 3/29/2024 |
3.0.60 | 76 | 3/28/2024 |
3.0.59 | 90 | 3/15/2024 |
3.0.58 | 89 | 3/14/2024 |
3.0.57 | 71 | 3/13/2024 |
3.0.56 | 83 | 3/8/2024 |
3.0.55 | 81 | 3/7/2024 |
3.0.54 | 66 | 3/6/2024 |
3.0.53 | 91 | 3/5/2024 |
3.0.52 | 94 | 3/4/2024 |
3.0.51 | 88 | 2/28/2024 |
3.0.50 | 83 | 2/27/2024 |
3.0.49 | 85 | 2/23/2024 |
3.0.48 | 85 | 2/22/2024 |
3.0.47 | 86 | 2/21/2024 |
3.0.46 | 81 | 2/20/2024 |
3.0.45 | 75 | 2/15/2024 |
3.0.44 | 89 | 2/9/2024 |
3.0.43 | 87 | 2/7/2024 |
3.0.42 | 84 | 2/6/2024 |
3.0.41 | 75 | 2/5/2024 |
3.0.40 | 76 | 1/31/2024 |
3.0.39 | 74 | 1/30/2024 |
3.0.38 | 80 | 1/23/2024 |
3.0.37 | 77 | 1/22/2024 |
3.0.36 | 103 | 1/11/2024 |
3.0.35 | 132 | 12/13/2023 |
3.0.34 | 104 | 12/12/2023 |
3.0.33 | 121 | 11/23/2023 |
3.0.32 | 103 | 11/20/2023 |
3.0.31 | 113 | 11/17/2023 |
3.0.30 | 102 | 11/16/2023 |
3.0.29 | 104 | 11/7/2023 |
3.0.28 | 94 | 11/6/2023 |
3.0.27 | 107 | 10/31/2023 |
3.0.26 | 98 | 10/30/2023 |
3.0.25 | 106 | 10/25/2023 |
3.0.24 | 120 | 10/11/2023 |
3.0.23 | 112 | 9/25/2023 |
3.0.22 | 105 | 9/19/2023 |
3.0.21 | 107 | 9/18/2023 |
3.0.20 | 119 | 9/13/2023 |
3.0.19 | 112 | 9/12/2023 |
3.0.18 | 117 | 9/11/2023 |
3.0.17 | 95 | 9/6/2023 |
3.0.16 | 114 | 9/5/2023 |
3.0.15 | 128 | 9/4/2023 |
3.0.14 | 121 | 9/1/2023 |
3.0.13 | 121 | 8/31/2023 |
3.0.12 | 134 | 8/30/2023 |
3.0.11 | 121 | 8/29/2023 |
3.0.10 | 150 | 8/28/2023 |
3.0.9 | 153 | 8/22/2023 |
3.0.8 | 133 | 8/17/2023 |
3.0.7 | 146 | 8/9/2023 |
3.0.6 | 142 | 8/8/2023 |
3.0.5 | 132 | 8/7/2023 |
3.0.4 | 138 | 7/25/2023 |
3.0.3 | 134 | 7/14/2023 |
3.0.2 | 156 | 7/13/2023 |
3.0.1 | 157 | 7/12/2023 |
3.0.0 | 281 | 12/12/2022 |
2.0.7 | 427 | 6/6/2022 |
2.0.5 | 442 | 1/11/2022 |
2.0.3 | 411 | 1/7/2021 |
2.0.2 | 556 | 9/13/2020 |
2.0.1 | 474 | 3/25/2020 |
2.0.0 | 505 | 12/23/2019 |
1.0.3 | 749 | 11/8/2018 |
1.0.2 | 677 | 11/6/2018 |