我应该在哪里存储我的应用程序的“激活"?钥匙? [英] Where should I store my application's "activation" key?

查看:53
本文介绍了我应该在哪里存储我的应用程序的“激活"?钥匙?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了一个应用程序,我想向其中添加一个注册密钥/序列号(我非常重视最小的不便 - ala #4 at 这篇 Eric Sink 文章).我的问题是关于注册应用程序后在哪里存储激活".据我了解,我在将密钥存储在所有用户都可以读取的公共场所(但需要管理员权限才能保存在那里)和存储每个用户的激活(但随后每个用户都在计算机将必须独立激活).这给了我两个选择:

I've written an application and I'd like to add a registration key/serial number to it (I'm big on minimum inconvinience - ala #4 at this Eric Sink article). My question is about where to store the "activation" once the application has been registered. As I understand it, I have a trade-off between storing the key in a public place, where all users can read it (but which requires admin rights to save there) and storing a per-user activation (but then each user on the computer will have to activate independantly). That gives me two choices:

  1. 某些具有本地管理员权限的用户激活了该产品.激活存储在 HKLM、程序文件文件夹或其他所有用户都可以读取的位置,并且产品已为所有用户激活.
  2. 用户(有或没有管理员权限)激活产品.激活存储在以用户为中心的某个地方(每用户 app.config、HKCU 等).优点是用户不必是管理员.缺点是如果有 6 个用户使用该计算机,则每个用户都必须激活该产品.他们每个人都可以重复使用相同的序列号,但他们仍然必须输入它.

这真的是权衡吗?如果是,其他人做了什么?作为开发人员,我习惯于人们是本地管理员,但在现实世界中,我不希望我的许多公司用户都是本地管理员,这使我倾向于选项 2.计算机不经常共享吗?足以让我不应该担心吗?

Is this really the trade-off? If it is, what have others done? As a developer, I'm used to people being a local admin, but in the real-world, I don't expect many of my corporate users to be local admins, which makes me lean towards option 2. Are computers not shared often enough that I shouldn't be concerned?

再说一次,我不是在问如何物理注册计算机 - 我并不担心.我只会对所提供的密钥进行校验和并予以批准,因为我希望尽可能做到非侵入性.

Again, I'm not asking about how to physically register a computer - I'm not worried about it. I'm only going to checksum the key provided and give the go-ahead, as I want to be as non-invasive as possible.

推荐答案

我会推荐一个不需要管理员权限的解决方案.许多用户,尤其是在共享环境中,将没有这些权限,也无法方便地找到拥有这些权限的任何人.

I would recommend a solution that does not require admin rights. Lots of users, especially in shared environments, won't have those rights and won't be able to find anyone with them conveniently.

此外,在未来几年,随着安全状况的改善,我认为在您使用的计算机上拥有管理员权限将变得越来越不寻常.

Also, going forward a few years, I think it will be getting increasingly unusual to have admin rights on the computer you are using, as the security situation improves.

这篇关于我应该在哪里存储我的应用程序的“激活"?钥匙?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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