以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  密钥匙  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=60749)

--  作者:mengyun2020
--  发布时间:2014/11/30 16:50:00
--  密钥匙
你好我在咱们那里刚买了一套密匙,我用这个固化加密函数
If UKey.Start() Then
    If UKey.Encrypt1("abc") <> "2F7EFE3A0632AE5C" Then
        
MessageBox.Show("请插上XX公司提供的UKey!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
        e.Cancel = True
    End 
If

Else

    MessageBox.Show("启动UKey失败!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
    e.Cancel = 
True

End
 If
设置了一个密钥,可是没有设置过的,也能启动,什么原因呢?

--  作者:有点甜
--  发布时间:2014/11/30 16:53:00
--  
 你在beforeopenproject加入此段代码了吗?
--  作者:mengyun2020
--  发布时间:2014/11/30 16:55:00
--  
加了
--  作者:有点甜
--  发布时间:2014/11/30 16:58:00
--  

是不是默认就是设置过了的?

 

你msgbox(UKey.Encrypt1("abc")) 看一下,或者重新设置一种


--  作者:mengyun2020
--  发布时间:2014/11/30 17:02:00
--  
msgbox(UKey.Encrypt1("dhy")) 
--  作者:mengyun2020
--  发布时间:2014/11/30 17:03:00
--  
我设置了一个加密,怎么所有的都可以用呢?是不是你们设置好的。
--  作者:有点甜
--  发布时间:2014/11/30 17:04:00
--  
  反正你设置一种就行,按照帮助文档做肯定不会有错的。