简体   繁体   中英

Serial number generation algorithm for C# application

I am developing a shareware c# application which accepts a serial key generated in my website.

I am following the following approach suggested by Joseph Spiros

You bundle your public key with the application. When the user buys the application, they supply their name and e-mail address. The web site hashes the user's name and e-mail address, signs the hash with your private >key, and provides the result in Base64 to ease typing. When the user enters the "code" into your application along with their name and e-mail >address, your application can verify that it was signed by your private key (which only >you/the web store has access to), and that it matches the name and e-mail provided by the >user.

My website runs on linux server so that the program generating the licence will be written in php. The software is developed using c#. Please tell me whether the licence/hash generated and signed using a private key in php will be compatible with the public key in C#.

A pointer to an example would be helpful.

有关Microsoft堆栈上许可共享软件的示例,请查看Shareware Starter Kit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM