Hysen Labs
Library / SDK
ullmark/hashids.net avatar
ullmark

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.

3,354 stars172 forksC#MIT
01
DEEP OPEN-SOURCE ANALYSIS

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.

02
DEEP OPEN-SOURCE ANALYSIS

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.

03
DEEP OPEN-SOURCE ANALYSIS

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.

04
DEEP OPEN-SOURCE ANALYSIS

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.

05
DEEP OPEN-SOURCE ANALYSIS

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.

06
DEEP OPEN-SOURCE ANALYSIS

Editorial conclusion

The repository README is the source for this review. It does not replace a local installation or an independent test.

07
DEEP OPEN-SOURCE ANALYSIS

Official sources

08
Community notes

Community notes