Private Sub Command1_Click()
strlength = Len(Text1.Text)
If strlength = 0 Or strlength / 2 <> Int(strlength / 2) Or strlength > 16 Then
Text2.Text = "未填入密文或填写有误!"
Else
xorvalue = "359a4da653a9d46a"
strtemp = ""
Text2.Text = ""
For i = 1 To strlength Step 2
strvalue = Val("&H" + Mid(Text1.Text, i, 2)) Xor Val("&H" + Mid(xorvalue, i, 2))
strtemp = strtemp + Chr(strvalue)
Text2.Text = strtemp
Next i
End If
End Sub
看不懂,不知道该怎么用,,楼主能给解释一下吗?
谢谢.... |