'For VB 6.0 KeyGen Src by KuNgBiM【支持中文、符号等乱七八糟的注册名】
Option Explicit
Private Sub Command1_Click()
Dim S As String, bArr() As Byte, i As Integer
bArr = StrConv(Text1.Text, vbFromUnicode)
Text2.Text = ""
For i = 0 To UBound(bArr)
If i <> 0 Then Text2.SelText = ""
Text2.SelText = Format$(Hex$(bArr(i)), "00")
Next
End Sub