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

SberTech Expands AI Agents in Platform V DataSpace to Enable Corporate Application Development from Text Descriptions

SberTech has introduced a new set of skills for its AI agents within the Platform V DataSpace platform, allowing the creation of corporate applications based on textual descriptions. The update focuses on automating the design of architectural components while respecting enterprise environment requirements. Presented at the AI Journey 2026 conference in Moscow, the skills draw from the company's low-code development practices and have been released openly on GitVerse. The AI agents can now handle user interfaces, server-side logic, data models, authorization mechanisms, and access rights. This addresses challenges in vibe coding by providing better architectural control and consistent service structures. According to CEO Maxim Tyatyushev, the capabilities support rapid prototyping, business hypothesis testing, and organizational scaling for both professional developers and non-programmers.

AntiMalware•Other

Russia's MAX Messenger Launches Chatbot for Presidential Appeals Collecting Personal Data

VK has activated a dedicated chatbot inside the MAX messenger to collect text and video messages addressed to President Vladimir Putin as part of the annual "Results of the Year" program. Citizens of Russia, regardless of age or region, must provide a phone number, full name, age, locality, and email address before submitting questions or recordings. The collection window opens at midnight Moscow time on 27 November and closes at the end of the live broadcast on 10 December. Messages will be reviewed by the program’s editorial team, which may contact senders using the supplied contact details, while GigaChat AI will assist users in refining their questions. Storage periods and handling procedures for the collected personal data remain unspecified in the official announcement. MAX joins other official channels including a dedicated website, mobile app, VK and Odnoklassniki communities, telephone, and SMS/MMS options.

AntiMalware•Other

Security Vision Releases SV5 Update with HTTPS Connectors, Dynamic Memory Management and MCP Automation

Security Vision has released a major update to its SV5 platform focused on improving secure integrations and operational resilience. The new version introduces HTTPS encryption for connector traffic, dynamic resource adaptation during memory shortages, and automatic discovery of MCP components. Administrators can now configure traffic encryption between the connector service and individual connectors to reduce interception risks during integration with internal and external IT systems. The workflow and connector services include mechanisms that automatically adjust parameters under peak loads to prevent critical errors. MCP setup has been simplified with self-discovery of REST tools, resources, and prompts even without explicit directory paths in configuration files. Additional improvements cover data visualization, manual refresh buttons in monitoring sections, a streamlined main menu, and automatic cleanup of performance logs after a defined retention period.

AntiMalware•Other

WhatsApp Rolls Out Scheduled Messaging Feature Preserving End-to-End Encryption

WhatsApp has introduced a scheduled messaging capability that allows users to set a specific date and time for messages, photos, videos, and links to be delivered automatically. The feature works even when the sender's device is powered off or offline, as the messages are stored on WhatsApp servers until the chosen delivery time. All scheduled content remains protected by end-to-end encryption throughout the process. Users can access and cancel planned messages through the chat information section, and recipients cannot detect whether a message was pre-scheduled or later removed. The rollout began with beta testers and will reach stable Android and iOS versions worldwide over the coming weeks, with a maximum scheduling window of 14 days.