Habr•July 28, 2026•🇷🇺Translated from Russian

Why a 202-Character License Key Uses ECDSA P-256 Instead of Ed25519 or RSA

A developer needed to implement offline license key verification for a desktop application written in .NET. The license string had to work without an internet connection, contain no third-party dependencies, remain short enough for manual typing from an email, and support key rotation if the private key were ever compromised.

The first choice was Ed25519 because of its compact size, speed, and deterministic signatures. However, reflection over System.Security.Cryptography in both .NET 8.0.28 and .NET 10.0.9 showed that no Ed25519 or Curve25519 types are exposed. The only asymmetric primitives available are DSA, ECDsa, ECDiffieHellman, and RSA, together with the NIST P-256, P-384, P-521, and Brainpool named curves. Post-quantum algorithms such as ML-DSA and SLH-DSA appear only in .NET 10.

Attempts to create an Ed25519 curve with ECDsa.Create(ECCurve.CreateFromFriendlyName("Ed25519")) throw a PlatformNotSupportedException. An open GitHub issue requesting Ed25519 support has been open since 2015, with the approved API now scheduled for .NET 11.

Adding external libraries was considered next. BouncyCastle 2.6.2 adds a single 4.7 MB managed assembly, while NSec 24.4.0 brings a 92 KB wrapper plus native libsodium binaries. The latest NSec release refuses to install on .NET 8, illustrating the risk that a dependency’s platform support schedule may diverge from the application’s own lifecycle.

Benchmarks on an AMD Ryzen 7 5800H running .NET 8 Release showed the following verification times for a 39-byte payload: ECDSA P-256 at 191 µs, Ed25519 via BouncyCastle at 77 µs, and Ed25519 via NSec at 91 µs. RSA-2048 verification was fastest at 16 µs, yet its 256-byte signature expands to 571 Base32 characters—far too long for comfortable manual entry.

Encoding the 64-byte ECDSA signature plus payload in Base32 with groups of five characters separated by hyphens produces a 202-character key. This length is the shortest mathematically possible for an offline scheme that must embed both the license data and a cryptographically strong signature.

ECDSA signatures were recorded in IEEE P1363 format (r‖s) to guarantee a fixed 64-byte length; the DER format produces variable lengths between 69 and 72 bytes. The public key is stored inside the application as raw 64-byte coordinates rather than the full 91-byte SubjectPublicKeyInfo structure, reducing the embedded constant to 88 characters.

The chosen algorithm carries two acknowledged drawbacks. ECDSA signature generation depends on a high-quality random nonce; reuse or predictability can leak the private key. In addition, the same license data signed twice yields different strings, requiring the license registry to tolerate duplicates. These risks were accepted because signing occurs on a single offline machine using the operating system’s RNG, and the threat model is limited to protecting a commercial desktop application rather than high-value secrets.

Related articles

AntiMalware•Other

Microsoft Expands Android Integration in Windows 11 with Start Menu Notifications and File Explorer Access

Microsoft has outlined plans to integrate Android smartphones more deeply into Windows 11, reducing the need to reach for a physical phone. Messages and notifications from linked Android or iPhone devices will appear directly in the Start menu, while conversations can be opened in resizable separate windows. Quick Settings will include controls to mute the phone or trigger its ringer for locating a lost device. For compatible Android phones, users will be able to run mobile apps in independent windows and browse phone files through File Explorer. A notification will appear on the desktop after taking a photo on the phone, allowing one-click access to the image. The Resume feature will also enable seamless continuation of supported tasks when switching between devices. These enhancements build on the existing Phone Link app but embed the functionality more natively into the Windows interface.

Securitylab•Other

R-Vision SIEM Demonstrates Resilience During Intense Standoff 17 Cyber Defense Exercise

A mixed team from akPots defended the Telecom sector at Standoff 17 using R-Vision SIEM as the central correlation platform while facing more than ten simultaneous red-team groups. The exercise featured nine realized critical events out of 37 planned scenarios, including satellite tracking disruption, IPTV broadcast manipulation, and unlimited eSIM issuance. Team members had to master the SIEM in real time rather than through pre-loaded logs, relying on raw search, custom dashboards, and grouping features to cut through massive alert volumes. Additional tools such as PT Application Firewall, PT NAD, PT Sandbox, and PT Container Security provided visibility into network traffic, file behavior, and Kubernetes environments. The team organized work through dedicated chat threads, a shared living document for IOCs, and a captain role to balance workload across distributed participants. Feedback highlighted the need for one-click widget-to-raw-event navigation, vendor-supplied detection scenarios, and nested grouping to improve future investigations.

AntiMalware•Other

Avanpost Launches Identity Cloud Service, CURATOR Becomes First Partner

Avanpost has begun commercial operation of its Identity Cloud platform, a subscription-based service for multi-factor authentication and single sign-on aimed at employees and contractors. The service removes the need for heavy on-premises IAM deployments by allowing organizations to adopt cloud identity protection through flexible subscription plans. CURATOR became the first partner to roll out the platform, offering it under the CURATOR.IDENTITY brand. Four tariff tiers are available, ranging from basic Start to the upcoming Zero Trust package that includes device verification and continuous trust assessment. Each customer receives an isolated environment with its own database, while Access Bridge keeps infrastructure secrets on-premises and supports offline authentication during connectivity loss. Partners can either resell the Avanpost service or deploy the platform in their own infrastructure and sell it under their own branding.

Habr•Other

Microsoft 365 Admin Tool Exposes Pitfalls in Graph, Exchange PowerShell and Intune Management

An open-source developer has released version 2.0 of SwissKnife for MS Graph, a tool that adds a safe preview-and-apply layer on top of Microsoft 365 administration. The project addresses the lack of a native what-if mode in Microsoft Graph and the incomplete coverage of Exchange tasks in the Graph API. It implements a two-step plan-and-apply workflow, supports fallback to Exchange Online PowerShell or the Admin API, and runs community scripts under strict constraints. The author details multiple real-world obstacles including named-location ID drift in Conditional Access policies, masked secrets returned by Intune, and limitations when restoring Transport Rules from snapshots. The tool also provides a worker mode for macOS and Linux users and enforces script signing plus AST-based command whitelisting. Feedback is requested on error messages and tasks that still require manual PowerShell use.