以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  如何判断一个字符是否encrypttext()  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=180227)

--  作者:lihe60
--  发布时间:2022/10/9 13:28:00
--  如何判断一个字符是否encrypttext()
如题
--  作者:有点蓝
--  发布时间:2022/10/9 13:31:00
--  
没有办法判断,如果是一串字符,可以考虑进行解密,可以解密的就是
--  作者:lihe60
--  发布时间:2022/10/9 13:39:00
--  
if 不能解密     \'这个代码能写就好了。
end if

--  作者:有点蓝
--  发布时间:2022/10/9 13:59:00
--  
前提是得有密钥

Dim Val3 As String = DecryptText("123456789", "a23", "op#")
If Val3 = "" Then
    MsgBox("不能解密")
End If 

--  作者:lihe60
--  发布时间:2022/10/9 14:07:00
--  

System.Security.Cryptography.CryptographicException: 要解密的数据的长度无效。


--  作者:有点蓝
--  发布时间:2022/10/9 14:12:00
--  
放入try里面