📄 encrypt.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form Encrypt
BorderStyle = 1 'Fixed Single
Caption = "MD5加密"
ClientHeight = 3885
ClientLeft = 45
ClientTop = 435
ClientWidth = 6765
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3885
ScaleWidth = 6765
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton CmdExit
Caption = "退 出"
Height = 495
Left = 5040
TabIndex = 9
Top = 2400
Width = 1455
End
Begin VB.OptionButton Opt
Caption = "Opt"
Height = 255
Index = 1
Left = 120
TabIndex = 8
Top = 1560
Width = 255
End
Begin VB.OptionButton Opt
Caption = "Opt"
Height = 255
Index = 0
Left = 120
TabIndex = 7
Top = 480
Value = -1 'True
Width = 255
End
Begin MSComDlg.CommonDialog Cd
Left = 5880
Top = 3360
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.Frame Frame2
Caption = "文件加密"
Height = 975
Left = 480
TabIndex = 4
Top = 1200
Width = 6015
Begin VB.CommandButton CmdBws
Caption = "..."
Height = 375
Left = 5400
TabIndex = 6
Top = 360
Width = 495
End
Begin VB.TextBox TxtF
Height = 375
Left = 240
TabIndex = 5
Top = 360
Width = 5055
End
End
Begin VB.Frame Frame1
Caption = "字符串加密"
Height = 975
Left = 480
TabIndex = 2
Top = 120
Width = 6015
Begin VB.TextBox TxtS
Height = 375
Left = 240
TabIndex = 3
Top = 360
Width = 5655
End
End
Begin VB.CommandButton CmdCrypt
Caption = "加 密"
Height = 495
Left = 3360
TabIndex = 1
Top = 2400
Width = 1455
End
Begin VB.TextBox TxtMD5
Height = 375
Left = 480
TabIndex = 0
Top = 3120
Width = 6015
End
End
Attribute VB_Name = "Encrypt"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdBws_Click()
On Error Resume Next
Cd.Filter = "所有文件|*.*"
Cd.CancelError = True
Cd.ShowOpen
If Err.Number = 0 Then
TxtF.Text = Cd.FileName
End If
End Sub
Private Sub CmdCrypt_Click()
If Opt(0).value Then
TxtMD5.Text = Md5_String_Calc(TxtS.Text)
Else
TxtMD5.Text = Md5_File_Calc(TxtF.Text)
End If
End Sub
Private Sub CmdExit_Click()
End
End Sub
Private Sub TxtF_GotFocus()
Opt(1).value = True
End Sub
Private Sub TxtS_GotFocus()
Opt(0).value = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -