📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "Form1"
ClientHeight = 2625
ClientLeft = 45
ClientTop = 330
ClientWidth = 7980
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2625
ScaleWidth = 7980
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "解Base64码"
Height = 360
Left = 5145
TabIndex = 3
Top = 2175
Width = 1425
End
Begin VB.TextBox Text2
Height = 1965
Left = 4005
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 2
Top = 45
Width = 3930
End
Begin VB.CommandButton Command1
Caption = "编Base64码"
Height = 345
Left = 900
TabIndex = 1
Top = 2130
Width = 1365
End
Begin VB.TextBox Text1
Height = 1950
Left = 75
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 0
Top = 60
Width = 3840
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim arrstr() As Byte
arrstr = StrConv(StrConv(Text1.Text, vbFromUnicode), vbUnicode) ' 先转化成ASC码再转化成UNICODE码
Text2.Text = B64E(arrstr)
End Sub
Private Sub Command2_Click()
Dim OutData() As Byte
If B64U(Text2.Text, OutData) = True Then
'Text1.Text = StrConv(OutData, vbUnicode) ' 如果原来是ASC码进去加密的用这个语句
Text1.Text = CStr(OutData) ' 如果原来是UNICODE进去加密的,用这个,这就要根据实际情况调整了
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -