在读取.lic文件时需要帮助 [英] Need help with reading .lic file
本文介绍了在读取.lic文件时需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
伙计们,我创建了一个程序,该程序正在生成加密的许可证文件* .lic,现在我正在研究
Hey guys, I have created a program which is generating an encrypted license file *.lic, now I am working on a
RIAServicesLibrary
,该程序将在软件中实现,以检查,读取(解密,加密)和显示数据. lic文件.现在,我正在使用
which will be implemented in software to check,read(decrypt, encrypt) and display data in lic file. Right now I am using
LicenseManager
类来验证许可证,并且在读取,显示文件中的数据时需要帮助.有什么建议吗?到目前为止,我只有这个
class to validate license, and I need help on reading, displaying data from file. Any advices? So far I got only this
[LicenseProviderAttribute(typeof(LicFileLicenseProvider))]
public class LicensedClass : IDisposable
{
private License license = null;
public LicensedClass( TextBox tex,TextBox tex2)
{
license = LicenseManager.Validate(typeof(Form1), this);
tex.Text=("License is Valid");
}
public void Dispose()
{
if (license != null)
{
license.Dispose();
license = null;
}
}
}
这是WindowsFormApplication,但我打算在dll中使用此代码.欢迎任何帮助.
this is WindowsFormApplication, but I am planning to use this code in my dll. Any help is welcome.
推荐答案
我的建议是,您必须在.lic中使用哈希数据.因为如果您可以解密加密的数据,那么任何人都可以解密它.因此,您在那里遇到了安全问题.
请记住,不建议在Silverlight中从客户端PC读取文件.可能是该课程可以帮助您在服务器和服务器上Silverlight的客户场景: AesManaged
希望它能以任何方式提供帮助.
My advice is that you must use hashed data in your .lic. Because if you can decrypt the encrypted data anyone can decrypt it. So, you have a security issue there.
Remember that in silverlight isn''t recommendable to read file from client PC. May be this class help you in server & client scenario for Silverlight: AesManaged
Hope it helps in any way.
这篇关于在读取.lic文件时需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文