Skip to content

Hardware Locking

Prevent software piracy and unauthorized license sharing by binding your application to a specific machine. Hardware locking ensures that a license key generated for one user cannot be used on a different computer.

Hardware ID Display to the User


The process creates a unique “fingerprint” of the user’s computer, known as the Hardware ID (or System ID).

  1. Fingerprinting: When your protected file is launched, VBA Padlock reads the machine’s hardware serial numbers.
  2. ID Generation: A unique, non-reversible Hardware ID is generated for that specific machine.
  3. Key Request: The user sends you this ID (via the activation dialog or automatically via Online Activation).
  4. Locked Key: You generate a license key that is cryptographically bound to that specific Hardware ID.
  5. Validation: On every launch, the software re-checks the hardware. If it doesn’t match the key, the application remains locked.

You have full control over which hardware parts form the “fingerprint”. You can configure these in the Hardware ID Options dialog.

Hardware ID Configuration

ComponentReliabilityStabilityRecommended?
CPU InfoHighVery StableYes (Default)
HD SerialHighStableYes (Default)
MAC AddressModerateVariableOnly for stable networks
Primary DiskHighSubject to upgradesOptional

There are several ways to get the Hardware ID from your users.

The standard activation dialog displays the Hardware ID prominently. Users can simply copy and paste it into an email or your web store.


Sometimes, hardware locking is too restrictive (e.g., users working from multiple computers via USB).

Hardware Locked

  • Maximum Security: Keys cannot be shared.
  • Usage: Standard desktop installs.
  • Storage: Windows Registry.

Portable Mode (.LIC)

  • Moderate Security: License follows the file.
  • Usage: USB drives, virtual machines.
  • Storage: .LIC file next to workbook.

Hardware Options

Configure the components used for the ID fingerprint. View reference →

Key Generator

Generate keys locked to specific Hardware IDs. Learn how →

Deactivation

Allow users to transfer their license to a new machine. Learn more →