From VCL Examples:
Serial Key Generator is application specially designed for software developers to help protect your applications by serial key registration. Just in a few clicks you are able to generate serial keys and to implement them inside your C# .NET, Visual Basic .NET, Delphi, C++ Builder and Java applications. INNO and NSIS scripts are also supported.
Features: Generate serial keys using custom number of columns and characters per column. Serial keys can contain uppercase and/or lowercase charactes and/or numbers. Generate up to 2 million serial keys in one turn (1 million with 32 bit version of SKG). Export serial keys to CSV, TXT documents. Import serial keys from CSV, TXT documents. Export serial keys to MySQL and MS SQL databases (SQL Query generator). Export serial keys to encrypted registration files (SHA-512). Update encrypted registration files (add new serial keys, delete or validate existing serial keys). Source code generator for encrypted registration files supporting C#.NET, Visual Basic .NET, C++ Builder, Delphi and Java applications. INNO and NSIS scripts are also supported! TRegistrationFile and TMSSQLRegistration components for Delphi & C++ Builder. Validate, add and delete serial keys from MS SQL server. Documentation and example projects for VB .NET, C# .NET, C++ Builder, Delphi, Java INNO and NSIS. Lifetime free upgrades.