feat: renamed MfGames.Crypto to MfGames.Cryptography

This commit is contained in:
D. Moonfire 2024-04-21 12:58:51 -05:00
parent 3d8da5863f
commit a7226db9e9
13 changed files with 33 additions and 26 deletions

View file

@ -95,7 +95,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MfGames.Nitride.Exec.Tests"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MfGames.Cryptography", "src\MfGames.Cryptography\MfGames.Cryptography.csproj", "{832DBBC9-3A53-4F6B-B98C-4059DF780124}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MfGames.Cryptography", "src\MfGames.Cryptography\MfGames.Cryptography.csproj", "{832DBBC9-3A53-4F6B-B98C-4059DF780124}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MfGames.Crypto.Tests", "tests\MfGames.Crypto.Tests\MfGames.Crypto.Tests.csproj", "{7A773B2F-ADF4-450F-8F43-D3C3C689E1CE}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MfGames.Cryptography.Tests", "tests\MfGames.Cryptography.Tests\MfGames.Cryptography.Tests.csproj", "{7A773B2F-ADF4-450F-8F43-D3C3C689E1CE}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MfGames.Nitride.SpectreConsole", "src\MfGames.Nitride.SpectreConsole\MfGames.Nitride.SpectreConsole.csproj", "{0C5C8D0A-D283-477F-82C4-2FF026F6EC0C}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MfGames.Nitride.SpectreConsole", "src\MfGames.Nitride.SpectreConsole\MfGames.Nitride.SpectreConsole.csproj", "{0C5C8D0A-D283-477F-82C4-2FF026F6EC0C}"
EndProject EndProject

View file

@ -6,7 +6,7 @@ This [monorepo](https://en.wikipedia.org/wiki/Monorepo) is the collection of all
The documentation for the entire project can be found in the [./docs/ folder](./docs/index.md) of this project, but below are some notable links are: The documentation for the entire project can be found in the [./docs/ folder](./docs/index.md) of this project, but below are some notable links are:
- [MfGames.Gallium](./docs/gallium/index.md) - A toy Entity-Component-System (ECS) modeled after LINQ methods calls and suitable for environment where ease of use is more critical than performance. - [MfGames.Gallium](./docs/gallium/index.md) - A simplified Entity-Component-System (ECS) modeled after LINQ methods calls and suitable for environment where ease of use is more critical than performance.
- [MfGames.Nitride](./docs/nitride/index.md) - A flexible, configuration-as-code, static site generator build on top of MfGames.Gallium. - [MfGames.Nitride](./docs/nitride/index.md) - A flexible, configuration-as-code, static site generator build on top of MfGames.Gallium.
## Installing Packages ## Installing Packages

View file

@ -0,0 +1,7 @@
# Renaming MfGames.Crypto to MfGames.Cryptography
For many years, "crypto" really meant only one thing in the programming world: cryptozoology. No, actually "cryptography." However, with the advent of web3 and cryptocurrencies, the world "crypto" is becoming muddled and no-longer obvious of its purpose.
Recently, [BouncyCastle](https://www.bouncycastle.org/) has gone through a little refactoring themselves after starting with `BouncyCastle` then renaming themselves to `Portable.BouncyCastle` and finally `BouncyCastle.Cryptography`. Overally, we like the final name and it was inspiration for us doing the same.
So, it isn't really marked as a "breaking" change, but `MfGames.Crypto` is being renamed to `MfGames.Cryptography`. And, to avoid the struggle we had with BouncyCastle, the namespace also was changed to reflect that change.

View file

@ -1,4 +1,4 @@
namespace MfGames.Crypto; namespace MfGames.Cryptography;
public enum ByteStringFormat public enum ByteStringFormat
{ {

View file

@ -1,11 +1,11 @@
using MfGames.Crypto.Hashes; using MfGames.Cryptography.Hashes;
namespace MfGames.Crypto.Extensions; namespace MfGames.Cryptography.Extensions;
/// <summary> /// <summary>
/// Extension methods on byte arrays. /// Extension methods on byte arrays.
/// </summary> /// </summary>
public static class CryptoByteArrayExtensions public static class CryptographyByteArrayExtensions
{ {
/// <summary> /// <summary>
/// Converts the input into a hash string, such as hex or base64. /// Converts the input into a hash string, such as hex or base64.

View file

@ -1,12 +1,12 @@
using System.Text; using System.Text;
using MfGames.Crypto.Hashes; using MfGames.Cryptography.Hashes;
namespace MfGames.Crypto.Extensions; namespace MfGames.Cryptography.Extensions;
/// <summary> /// <summary>
/// Extension methods for generating hashes for strings. /// Extension methods for generating hashes for strings.
/// </summary> /// </summary>
public static class CryptoStringExtensions public static class CryptographyStringExtensions
{ {
/// <summary> /// <summary>
/// Gets the encoded byte array of the given string. /// Gets the encoded byte array of the given string.

View file

@ -1,4 +1,4 @@
namespace MfGames.Crypto.Hashes; namespace MfGames.Cryptography.Hashes;
/// <summary> /// <summary>
/// An enumeration of various hash types. /// An enumeration of various hash types.

View file

@ -1,6 +1,6 @@
using System.Security.Cryptography; using System.Security.Cryptography;
namespace MfGames.Crypto.Hashes; namespace MfGames.Cryptography.Hashes;
public static class HashTypeExtensions public static class HashTypeExtensions
{ {

View file

@ -1,13 +1,13 @@
using MfGames.Crypto; using MfGames.Cryptography;
using MfGames.Crypto.Extensions; using MfGames.Cryptography.Extensions;
using MfGames.Crypto.Hashes; using MfGames.Cryptography.Hashes;
namespace MfGames.IO.Extensions; namespace MfGames.IO.Extensions;
/// <summary> /// <summary>
/// Extensions for generating /// Extensions for generating
/// </summary> /// </summary>
public static class CryptoFileInfoExtensions public static class CryptographyFileInfoExtensions
{ {
/// <summary> /// <summary>
/// Hashes the given input and returns the results. /// Hashes the given input and returns the results.

View file

@ -1,10 +1,10 @@
using MfGames.Crypto; using MfGames.Cryptography;
using MfGames.Crypto.Extensions; using MfGames.Cryptography.Extensions;
using MfGames.Crypto.Hashes; using MfGames.Cryptography.Hashes;
namespace MfGames.Nitride.Contents; namespace MfGames.Nitride.Contents;
public static class CryptoContentExtensions public static class CryptographyContentExtensions
{ {
/// <summary> /// <summary>
/// Hashes the given input and returns the results. /// Hashes the given input and returns the results.

View file

@ -1,10 +1,10 @@
using MfGames.Crypto.Extensions; using MfGames.Cryptography.Extensions;
using MfGames.Crypto.Hashes; using MfGames.Cryptography.Hashes;
using Xunit; using Xunit;
namespace MfGames.Crypto.Tests; namespace MfGames.Cryptography.Tests;
public class CryptoStringExtensionsTests public class CryptographyStringExtensionsTests
{ {
[Fact] [Fact]
public void PasswordAsBase64Md5() public void PasswordAsBase64Md5()

View file

@ -1,12 +1,12 @@
using System.IO; using System.IO;
using MfGames.Crypto; using MfGames.Cryptography;
using MfGames.Crypto.Hashes; using MfGames.Cryptography.Hashes;
using MfGames.IO.Extensions; using MfGames.IO.Extensions;
using Xunit; using Xunit;
namespace MfGames.IO.Tests; namespace MfGames.IO.Tests;
public class CryptoFileInfoTests public class CryptographyFileInfoTests
{ {
[Fact] [Fact]
public void HashPasswordFileAsLowercaseHexSha256() public void HashPasswordFileAsLowercaseHexSha256()