我在本论坛看到如下加密函数,但对中文加密后,不能加密,请帮忙修改一下,简单点,不需要太复杂
Private Const GENKEY = &H87
Private Function EnCode(ByVal strstr As String) As String Dim aBytes() As Byte
Dim i As Integer
aBytes = strstr
For i = 0 To UBound(aBytes)
aBytes(i) = aBytes(i) Xor GENKEY
Next
EnCode = aBytes
End Function