hashids.net
GitHub describes it as A small .NET package to generate YouTube-like hashes from one or many numbers. Use hashids when you do not want to expose your database ids to the user.. The repository metadata lists C# as its primary language. The metadata lists the MIT license. This article stays within the project description and details documented in the GitHub repository README.
ullmark/hashids.net: Hashids
GitHub describes it as A small .NET package to generate YouTube-like hashes from one or many numbers. Use hashids when you do not want to expose your database ids to the user.. The repository metadata lists C# as its primary language. The metadata lists the MIT license. This article stays within the project description and details documented in the GitHub repository README.
Repository scope
GitHub describes it as A small .NET package to generate YouTube-like hashes from one or many numbers. Use hashids when you do not want to expose your database ids to the user.. The repository metadata lists C# as its primary language. The metadata lists the MIT license. The README describes the project this way: It converts numbers like 347 into strings like yr8 , or array of numbers like [27, 986] into 3kTMd . You can also decode those IDs back. This is useful in bundling several parameters into one, hiding actual IDs, or simply using them as short string IDs.
NOTE: You might want to use sqids-dotnet instead.
The README section "NOTE: You might want to use sqids-dotnet instead." states: The original author of the Hashids algoritm has rebranded and created a new algoritm called "sqids", you can read more about why here.. A .NET version of sqids has already been created and can be found here.
NOTE: You might want to use sqids-dotnet instead.
The README section "NOTE: You might want to use sqids-dotnet instead." states: This library have more or less been considered feature complete since its creation 2012 and will remain available and accept pull requests for bug fixes etc. but no new features will be added.
Features
The README section "Features" states: - Creates short unique IDs from integers. (only positive numbers & zero) - Generates non-sequential IDs for incremental input to stay unguessable. - Supports a single number or array of numbers. (supports int and long ) - Supports custom alphabet and salt , so IDs are unique to your application. (salt must be smaller than alphabet) - Supports minimum hash length. - Tries to avoid basic English curse words.
Editorial conclusion
The repository README is the source for this review. It does not replace a local installation or an independent test.
Community notes