C#中的串行密钥验证 [英] serial key validation in C#

查看:96
本文介绍了C#中的串行密钥验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#.Net中完成了我的项目.我在其中添加了一个序列号.在安装时,它要求我输入密钥.密钥格式也由我提供,但是我不知道如何验证该密钥.
请给我一些方法来验证该密钥.
现在,我的密钥已通过Visual Studio验证,或者我不知道是谁.密钥的验证如何完成?
但是我想自己做验证.可能吗?如果是的话,怎么办?




我添加了客户信息对话框.格式是使用序列号模板给出的.但是,为了进行验证,它会产生一个问题,即Visual Studio及其逻辑如此简单& amp; amp;这是如果一些数字被7除然后键是有效的.所以我想使用我的逻辑,如使用sha1,MD5,所以我必须在哪里进行编码.没有显示客户信息对话框的设计,如果显示,那么我在验证按钮上进行编码.但是现在我该怎么办?


请帮帮我.
非常感谢.

I completed my project in C#.Net. I Added a serial key in it. At the time of installation it asks me for the key. The key format is also given by me, but I don''t know how to validate that key.
Please give me some way how to validate that key.
Now my key is validated by visual studio or I don''t know who. How is the key''s validation done?
But I want to do the validation by my own. Is it possible? And if yes, how?




i added the customer information dialog. and format is given by using the serial number template. but for validation it create the problem that visual studio & its logic is so simple & it is if the some of digits is divided by 7 then key is valid.so i want to use the my logic like use sha1,MD5 so where i have to do coding. The design of the customer info dialog is not show,if it is shown then i do the coding on validate button. But now what i have to do?


Please help me.
Lots of thanks.

推荐答案

您可以看到此链接
点击
单击
You can see this links
Click
Click


重新发布 [

是的,您可以做到.
我假设您想将软件锁定为只能在一台PC上运行?
如果是这样,请查看
如何获取硬件信息(CPU ID,主板信息,硬盘序列号,系统信息等). ..) [ ^ ]-获取所有相关的硬件信息.
然后,您可以生成一个唯一的密钥,该密钥仅适用于该硬件.

如果您使用Google创建串行密钥c#",则会看到有许多不同的信息使用方式:选择一种,然后就可以使用!
Yes, you can do it.
I assume that you want to lock your software to work on only one PC?
If so, then look at How To Get Hardware Information (CPU ID, MainBoard Info, Hard Disk Serial, System Information , ...)[^] - which gets all the relevant hardware info.
You can then generate a unique key which will only work with that hardware.

If you Google "Create Serial Key c#" you will see that there are a lot of different ways you could use the information: pick one, and off you go!


这篇关于C#中的串行密钥验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆