希望仅在插入USB记忆棒时才使程序处于活动状态. [英] Want to make a program active only when a USB stick is plugged in..

查看:100
本文介绍了希望仅在插入USB记忆棒时才使程序处于活动状态.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,对于我将来的程序,我想学习如何保护我的应用程序.我的想法是,当我在客户端计算机上安装程序时,该程序仅应在将特定USB插入同一台计算机(其中包含某些..hmm文件?(以后会有更多))时才能运行.可以说我给了他一个我自己制作的计算器(只是一个简单的例子),那么当他打开它时,我首先要检查是否插入了正确的USB,以及其中是否包含正确的信息(例如密码? )...

好吧,我认为现在就这样,如果我想更多的话,我会让你知道..
谢谢前进.

P.S.我正在Visual Studio 2008中使用C#..
P.P.S.我希望我不要问太多,如果我对我的理解不够,请告诉我(我将尽我所能:))




好吧,这就是我现在在想的.我可以在USB驱动器中放一个简单的文本文件,上面写一些代码(例如89asd70a98d),然后在程序运行时会从USB打开文本文件,并检查文本文件是否正确.我不希望该文本文件被其他人访问,我可以简单地隐藏该文件(到目前为止,我使用了这个免费软件 winmend ,如果您使用过其他任何可以在USB上隐藏文件并对此感到满意的软件,请与我分享:)).但是现在我不知道如何确定USB的真实路径,导致它有时可能是d:\ e:\等.是否可以使用代码来确定文件是什么USB? (因为可以同时插入一个以上的USB.)
再次感谢:)

Hi, for my future programs i would like to learn how can i protect my applications. My idea is that when i install my program on the client computer, the program should only work when a specific USB is inserted on the same computer (that contains some.. hmm files? (later more)). Lets say i have gave him a calculator made by me (just a simple example), well when he opens it i want first to check if the correct USB is plugged and if it contains the right informations in it (something like a secret code?)...

Well i think that is it for now, if i think of something more I''ll let you know..
Thanks in forward.

P.S. I am working on C# in VisualStudio 2008..
P.P.S. I hope i am not asking too much, and if i wasn''t understandable enough, please tell me so (i ll try to be as much as I can :))




Well this is what i am thinking now. I can put a simple text file in the USB drive, with some code written in it (e.g. 89asd70a98d), and when the programs run it will open the text file from the usb and check if it is as it should be.. Now cause i wouldn''t like that text file to be accessed by others, i could simply hide this file (so far i come to this free software winmend, if you have used any other softwares that hide files on the usb and are satisfied by it, please share it with me :)). But now i would not know how to determine the real path of the usb, cause sometime it can be d:\ e:\ etc.. Is there a way with using a code to determine on what usb is the file? (as there could be inserted more then one usb at the same time..)
Thanks again :)

推荐答案

嘿!

有几种解决方案可以实现这一目标.如果您想要一个真正的安全解决方案,则需要使用带有公共& amp;的USB加密狗.私钥对.例如,您可以使用 [
Hey!

There are a couple of solutions available to accomplish that. If you want a real secure solution, you''ll need to have USB-Dongles with a public & private key pair. You may for example use this[^] hasp.

If you don''t want a real secure solution you can develop something yourself (for example, check for existance of a certain file on your USB drive).

Eduard


就我个人而言,我永远不会使用需要插入加密狗才能运行的软件.

您最好让它通过Internet进行验证,可以轻松地对其进行配置,以使该软件在没有提示用户是否无法连接服务器之前,可以在没有Internet连接的情况下运行一定次数. .您可以将MAC地址用作计算机ID,并且每当mac地址发生变化时,只要提示用户重新输入产品密钥并更新远程数据库即可.

硬件加密狗是如此1980年代.
Personally, I would never use a piece of software that required a dongle be plugged in so that it would run.

You''d be better off having it verify itself over the internet, which could be easily configured to allow the software to run a certain number of times without an internet connection before it prompts the user if the server can''t be connected to. You could use the MAC address as a machine ID, and whenever the mac address changes, just prompt the user to re-enter his product key, and update a remote database.

Hardware dongles are so 1980''s.


这篇关于希望仅在插入USB记忆棒时才使程序处于活动状态.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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