Console.WriteLine("注意:Dec算法并不安全,请不要把他当作加密算法
请输入文件:")
Dim file As String = Console.ReadLine()
If IO.File.Exists(file) Then
Console.WriteLine("请输入密码:")
Dim password As UShort = Console.ReadLine().GetHashCode() And UShort.MaxValue
Dim reader As New StreamReader(file)
Dim strbulid As New StringBuilder("#DEC_ENC::") strbulid.Append(Encrypt("DecHacker Gen Dec File", code2) & "::" & Encrypt("XXX.XXX.XXX.XXX", code2) & "::" & Encrypt("ENCODED", password) & vbCrLf & Encrypt(reader.ReadToEnd(), password))
Console.WriteLine(strbulid.ToString())
End If
Else
Console.WriteLine("输入错误")
Console.ReadKey()
Main()
End If
Console.ReadKey()
End Sub