HashBrowns 4.0.0
dotnet add package HashBrowns --version 4.0.0
NuGet\Install-Package HashBrowns -Version 4.0.0
<PackageReference Include="HashBrowns" Version="4.0.0" />
paket add HashBrowns --version 4.0.0
#r "nuget: HashBrowns, 4.0.0"
// Install HashBrowns as a Cake Addin #addin nuget:?package=HashBrowns&version=4.0.0 // Install HashBrowns as a Cake Tool #tool nuget:?package=HashBrowns&version=4.0.0
HashBrowns
HashBrowns is a library to help simplify encryption within .Net.
Basic Usage
To use the library you first need to set up things on the ServiceCollection. Thankfully this only takes one call to do:
serviceCollection.RegisterHashBrowns();
This is required prior to using the CryptoManager or extension methods class for the first time. Once it is set up, you can use the CryptoManager class after getting an instance from the IoC container:
var Instance = cryptoManagerInstance.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 | net8.0 is compatible. 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 is compatible. |
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 | 89 | 11/24/2024 |
3.0.100 | 87 | 11/12/2024 |
3.0.99 | 104 | 11/11/2024 |
3.0.98 | 77 | 11/5/2024 |
3.0.97 | 83 | 11/4/2024 |
3.0.96 | 83 | 10/30/2024 |
3.0.95 | 76 | 10/29/2024 |
3.0.94 | 80 | 10/29/2024 |
3.0.93 | 83 | 10/15/2024 |
3.0.92 | 88 | 10/10/2024 |
3.0.91 | 87 | 10/9/2024 |
3.0.90 | 102 | 8/29/2024 |
3.0.89 | 114 | 8/26/2024 |
3.0.88 | 125 | 8/23/2024 |
3.0.87 | 125 | 8/22/2024 |
3.0.86 | 129 | 8/21/2024 |
3.0.85 | 116 | 8/19/2024 |
3.0.84 | 123 | 8/14/2024 |
3.0.83 | 65 | 8/2/2024 |
3.0.82 | 78 | 7/25/2024 |
3.0.81 | 89 | 7/10/2024 |
3.0.80 | 107 | 6/26/2024 |
3.0.79 | 98 | 6/25/2024 |
3.0.78 | 105 | 6/18/2024 |
3.0.77 | 104 | 6/17/2024 |
3.0.76 | 99 | 6/14/2024 |
3.0.75 | 96 | 6/13/2024 |
3.0.74 | 103 | 6/12/2024 |
3.0.73 | 104 | 5/30/2024 |
3.0.72 | 106 | 5/29/2024 |
3.0.71 | 102 | 5/16/2024 |
3.0.70 | 110 | 5/15/2024 |
3.0.69 | 124 | 5/7/2024 |
3.0.68 | 119 | 5/6/2024 |
3.0.67 | 77 | 5/2/2024 |
3.0.66 | 103 | 5/1/2024 |
3.0.65 | 132 | 4/30/2024 |
3.0.64 | 101 | 4/29/2024 |
3.0.63 | 121 | 4/11/2024 |
3.0.62 | 115 | 4/10/2024 |
3.0.61 | 128 | 3/29/2024 |
3.0.60 | 112 | 3/28/2024 |
3.0.59 | 134 | 3/15/2024 |
3.0.58 | 129 | 3/14/2024 |
3.0.57 | 104 | 3/13/2024 |
3.0.56 | 115 | 3/8/2024 |
3.0.55 | 118 | 3/7/2024 |
3.0.54 | 104 | 3/6/2024 |
3.0.53 | 127 | 3/5/2024 |
3.0.52 | 127 | 3/4/2024 |
3.0.51 | 136 | 2/28/2024 |
3.0.50 | 115 | 2/27/2024 |
3.0.49 | 128 | 2/23/2024 |
3.0.48 | 122 | 2/22/2024 |
3.0.47 | 125 | 2/21/2024 |
3.0.46 | 119 | 2/20/2024 |
3.0.45 | 109 | 2/15/2024 |
3.0.44 | 132 | 2/9/2024 |
3.0.43 | 126 | 2/7/2024 |
3.0.42 | 125 | 2/6/2024 |
3.0.41 | 110 | 2/5/2024 |
3.0.40 | 106 | 1/31/2024 |
3.0.39 | 109 | 1/30/2024 |
3.0.38 | 100 | 1/23/2024 |
3.0.37 | 99 | 1/22/2024 |
3.0.36 | 133 | 1/11/2024 |
3.0.35 | 173 | 12/13/2023 |
3.0.34 | 140 | 12/12/2023 |
3.0.33 | 157 | 11/23/2023 |
3.0.32 | 133 | 11/20/2023 |
3.0.31 | 152 | 11/17/2023 |
3.0.30 | 129 | 11/16/2023 |
3.0.29 | 122 | 11/7/2023 |
3.0.28 | 130 | 11/6/2023 |
3.0.27 | 137 | 10/31/2023 |
3.0.26 | 128 | 10/30/2023 |
3.0.25 | 138 | 10/25/2023 |
3.0.24 | 157 | 10/11/2023 |
3.0.23 | 154 | 9/25/2023 |
3.0.22 | 136 | 9/19/2023 |
3.0.21 | 144 | 9/18/2023 |
3.0.20 | 157 | 9/13/2023 |
3.0.19 | 137 | 9/12/2023 |
3.0.18 | 148 | 9/11/2023 |
3.0.17 | 127 | 9/6/2023 |
3.0.16 | 138 | 9/5/2023 |
3.0.15 | 165 | 9/4/2023 |
3.0.14 | 155 | 9/1/2023 |
3.0.13 | 141 | 8/31/2023 |
3.0.12 | 165 | 8/30/2023 |
3.0.11 | 158 | 8/29/2023 |
3.0.10 | 188 | 8/28/2023 |
3.0.9 | 182 | 8/22/2023 |
3.0.8 | 162 | 8/17/2023 |
3.0.7 | 180 | 8/9/2023 |
3.0.6 | 170 | 8/8/2023 |
3.0.5 | 162 | 8/7/2023 |
3.0.4 | 170 | 7/25/2023 |
3.0.3 | 150 | 7/14/2023 |
3.0.2 | 188 | 7/13/2023 |
3.0.1 | 193 | 7/12/2023 |
3.0.0 | 310 | 12/12/2022 |
2.0.7 | 461 | 6/6/2022 |
2.0.5 | 458 | 1/11/2022 |
2.0.3 | 447 | 1/7/2021 |
2.0.2 | 574 | 9/13/2020 |
2.0.1 | 504 | 3/25/2020 |
2.0.0 | 522 | 12/23/2019 |
1.0.3 | 787 | 11/8/2018 |
1.0.2 | 707 | 11/6/2018 |