GBX.NET.Hashing 1.0.3

GBX.NET.Hashing

NuGet Discord

Hashing features (currently only CRC32) for GBX.NET 2. This hashing function is used in maps when changing the MapUid or HashedPassword.

Framework support

  • .NET 9
  • .NET 8
  • .NET 6
  • .NET Standard 2.0

Usage

Additional package GBX.NET.LZO is required in this example.

At the beginning of your program execution, you add the Gbx.CRC32 = new CRC32(); to prepare the CRC32 hashing. It should be run only once.

using GBX.NET;
using GBX.NET.Engines.Game;
using GBX.NET.LZO;
using GBX.NET.Hashing;

Gbx.LZO = new Lzo();
Gbx.CRC32 = new CRC32(); // You need to add this

var map = Gbx.ParseNode<CGameCtnChallenge>("Path/To/My.Map.Gbx");

map.RemovePassword();

map.Save("MapWithNoPassword.Map.Gbx");

This example could be broken in older Trackmania games, as these games use older class IDs, to fix this problem, save the map like this:

map.Save("MapWithNoPassword.Challenge.Gbx", new()
{
    ClassIdRemapMode = ClassIdRemapMode.Id2006
});

License

GBX.NET.Hashing library is MIT Licensed.

However, if you would use GBX.NET.LZO package with it (which is usually required), you'd need to follow the GNU GPL v3 License. See License section on the main README for more details.

Showing the top 20 packages that depend on GBX.NET.Hashing.

Packages Downloads
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
143
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
141
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
128
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
125
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
123
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
121
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
120
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
119
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
117
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
116
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
114
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
113
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
112
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
111

.NET 8.0

.NET 9.0

.NET 10.0

.NET Standard 2.0

Version Downloads Last updated
1.0.3 250 01/06/2026
1.0.2 265 09/12/2025