Private Sub Command1_Click()
Dim i As Integer
Dim l As Integer
Dim key As String
Dim cipher() As String, plain As String
plain = ""
cipher = Split("86@86@80@82@82@82@83@8B@85@86@83@82@80@81@85@84@87@84", "@")
' key = "23016745AB"
' For i = 0 To UBound(cipher)
' For l = 1 To 10
' If Right(cipher(i), 1) = Mid(key, l, 1) Then
' plain = plain & l - 1
' End If
' Next
' Next
key = "23016745 89"
For i = 0 To UBound(cipher)
plain = plain & Mid(key, Val("&H" & Right(cipher(i), 1)) + 1, 1)
Next i
MsgBox plain
' plain = "442000197410237656"
End Sub
Private Sub Command1_Click()
Dim i As Integer
Dim cipher As String, plain As String, strTmp As String
plain = ""
cipher = Mid(Replace("86@86@80@82@82@82@83@8B@85@86@83@82@80@81@85@84@87@84", "@8", ""), 2)
For i = 1 To Len(cipher)
strTmp = Mid(cipher, i, 1)
Select Case strTmp
Case "2", "3", "6", "7", "A", "B"
plain = plain & Val("&H" & strTmp) - 2
Case "0", "1", "4", "5"
plain = plain & Val(strTmp) + 2
End Select
Next i
MsgBox plain
' plain = "442000197410237656"
End Sub
Private Sub Command1_Click()
Dim Cipher() As String
Dim Plain As String
Dim i As Integer
Cipher = Split("86@86@80@82@82@82@83@8B@85@86@83@82@80@81@85@84@87@84", "@")
For i = 0 To UBound(Cipher)
Plain = Plain & GetNumber("&H" & Cipher(i))
Next
MsgBox Plain
End Sub
Private Function GetNumber(ByVal Num As Long) As String
Num = Num - &H50
GetNumber = Chr(((Num Mod 4) + 2) Mod 4 + Int(Num / 4) * 4)
End Function
Private Sub Command1_Click()
Dim Cipher() As String
Dim Plain As String
Dim i As Integer
Cipher = Split("86@86@80@82@82@82@83@8B@85@86@83@82@80@81@85@84@87@84", "@")
For i = 0 To UBound(Cipher)
Plain = Plain & GetNumber("&H" & Cipher(i))
Next
MsgBox Plain
End Sub
Private Function GetNumber(ByVal Num As Long) As String
Num = Num - &H50
GetNumber = Chr(((Num Mod 4) + 2) Mod 4 + Int(Num / 4) * 4)
End Function
Private Sub Command1_Click()
Dim Cipher() As String
Dim Plain As String
Dim i As Integer
Cipher = Split("86@86@80@82@82@82@83@8B@85@86@83@82@80@81@85@84@87@84", "@")
For i = 0 To UBound(Cipher)
Plain = Plain & GetNumber("&H" & Cipher(i))
Next
MsgBox Plain
End Sub
Private Function GetNumber(ByVal Num As Long) As String
Num = Num - &H50
GetNumber = Chr(((Num Mod 4) + 2) Mod 4 + Int(Num / 4) * 4)
End Function
Private Sub Command1_Click()
Dim Cipher() As String
Dim Plain As String
Dim i As Integer
Cipher = Split("86@86@80@82@82@82@83@8B@85@86@83@82@80@81@85@84@87@84", "@")
For i = 0 To UBound(Cipher)
Plain = Plain & GetNumber("&H" & Cipher(i))
Next
MsgBox Plain
End Sub
Private Function GetNumber(ByVal Num As Long) As String
Num = Num - &H50
GetNumber = Chr(((Num Mod 4) + 2) Mod 4 + Int(Num / 4) * 4)
End Function
Private Sub Command1_Click()
Dim Cipher() As String
Dim Plain As String
Dim i As Integer
Cipher = Split("86@86@80@82@82@82@83@8B@85@86@83@82@80@81@85@84@87@84", "@")
For i = 0 To UBound(Cipher)
Plain = Plain & GetNumber("&H" & Cipher(i))
Next
MsgBox Plain
End Sub
Private Function GetNumber(ByVal Num As Long) As String
Num = Num - &H50
GetNumber = Chr(((Num Mod 4) + 2) Mod 4 + Int(Num / 4) * 4)
End Function
Private Sub Command1_Click()
Dim Cipher() As String
Dim Plain As String
Dim i As Integer
Cipher = Split("0BEA@64D4@78D9@08AA@64E0@75F1@76C6@06EC@70BE@80@82@08CC@83@04B9@64A7@60B2@87@82@81@05B6", "@")
For i = 0 To UBound(Cipher)
Plain = Plain & GetNumber("&H" & Cipher(i))
Next
MsgBox Plain
End Sub
Private Function GetNumber(ByVal Num As Long) As String
If Num < 256 Then
GetNumber = Chr(Num Xor &HB2)
Else
GetNumber = Chr(Num Xor &HB209)
End If
End Function
Private Sub Command1_Click()
Dim Cipher() As String
Dim Plain As String
Dim i As Integer
Cipher = Split("0BEA@64D4@78D9@08AA@64E0@75F1@76C6@06EC@70BE@80@82@08CC@83@04B9@64A7@60B2@87@82@81@05B6", "@")
For i = 0 To UBound(Cipher)
Plain = Plain & GetNumber("&H" & Cipher(i))
Next
MsgBox Plain
End Sub
Private Function GetNumber(ByVal Num As Long) As String
If Num < 256 Then
GetNumber = Chr(Num Xor &HB2)
Else
GetNumber = Chr(Num Xor &HB209)
End If
End Function