首页 相关文章 加解密文本的函数

加解密文本的函数

Private Sub Comman1_Click()
Dim str1, str2, str3 As String
str1 = "王宇虹"
str2 = Encrypt(str1, 188, 24)
MsgBox str2
str3 = Encrypt(str2, 188, 24)
MsgBox str3
End Sub

Private Function Encrypt(ByVal strSource As String, ByVal Key1 As Byte, _
ByVal Key2 As Integer) As String
Dim bLowData As Byte
Dim bHigData As Byte
Dim i As Integer
Dim strEncrypt As String
Dim strChar As String
For i = 1 To Len(strSource)

'从待加(解)密字符串中取出一个字符

strChar = Mid(strSource, i, 1)

...[ 查看全文 ]

2016-02-19 标签:

加解密文本的函数的相关文章

手机页面
收藏网站 回到头部