NetIdenticon 1.0.0
dotnet add package NetIdenticon --version 1.0.0
NuGet\Install-Package NetIdenticon -Version 1.0.0
<PackageReference Include="NetIdenticon" Version="1.0.0" />
<PackageVersion Include="NetIdenticon" Version="1.0.0" />
<PackageReference Include="NetIdenticon" />
paket add NetIdenticon --version 1.0.0
#r "nuget: NetIdenticon, 1.0.0"
#:package NetIdenticon@1.0.0
#addin nuget:?package=NetIdenticon&version=1.0.0
#tool nuget:?package=NetIdenticon&version=1.0.0
NetIdenticon
A .NET 8 / .NET 10 port of dgraham/identicon, the GitHub identicon algorithm. Pixel-identical to the Rust reference for any 16-byte hash. Rendering and PNG encoding use SkiaSharp.
byte[] png = Identicon.RenderPng("foo"); // MD5 of the UTF-8 text
byte[] png2 = Identicon.RenderPng(md5Hash); // 16+ byte hash
using SKBitmap bitmap = Identicon.Render(md5Hash); // 420x420, caller disposes
Throws ArgumentException when the hash is shorter than 16 bytes.
Native assets
SkiaSharp ships the Windows and macOS binaries. On Linux, add SkiaSharp.NativeAssets.Linux (or SkiaSharp.NativeAssets.Linux.NoDependencies for slim containers) to your application.
Tests
dotnet test src/NetIdenticon.Tests: unit, golden and round-trip tests.- Golden files: put PNGs made with
printf foo | identicon > foo.pnginsrc/NetIdenticon.Tests/golden/(file name = input text). - Differential tests against the Rust reference:
Setgit submodule update --init cargo build --release --manifest-path src/reference-ffi/Cargo.toml dotnet test src/NetIdenticon.ReferenceTests --filter Category=ReferenceIDENTICON_FFI_PATHto load the native library from elsewhere. Without the library these tests are skipped. The 2^28 color sweep runs with--filter Category=ReferenceExhaustive.
License
MIT. See LICENSE, which also carries the original dgraham/identicon notice.
| 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 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
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 |
|---|---|---|
| 1.0.0 | 87 | 11/3/2026 |