求高手破解 vb 用户登录界面 密码,O(∩ _ ∩)O 谢谢。
此贴已结[ 本帖最后由 vbqwerty 于 2014-5-13 14:23 编辑 ]
Private Sub Command1_Click() Dim s As String s = InputBox("请输入密文:", "输入密文") If Len(s) > 0 Then s = decode_reduce3(s) MsgBox "原密码是:" & s End If End Sub '解密函数,在 加密控制类 中。包括加密函数都在。 Public Function decode_reduce3(ByVal the_txt As String) As String Dim num1& Dim char2$ Dim char3$ Dim i As Long For i = 1 To Len(the_txt) num1 = Asc(Mid(the_txt, i, 1)) num1 = num1 - 4 char2 = Chr(num1) char3 = char3 & char2 Next i decode_reduce3 = char3 End Function