📄 encrypt.frm
字号:
VERSION 5.00
Begin VB.Form Formcrypt
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Encrypt/Decrypt Example"
ClientHeight = 1905
ClientLeft = 1725
ClientTop = 3375
ClientWidth = 5220
ForeColor = &H80000008&
LinkTopic = "Form1"
PaletteMode = 1 'UseZOrder
ScaleHeight = 1905
ScaleWidth = 5220
Begin VB.TextBox TextKey
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Height = 285
Left = 1440
TabIndex = 9
Text = "SECRET STRING"
Top = 60
Width = 3675
End
Begin VB.CommandButton CommandQuit
Appearance = 0 'Flat
Cancel = -1 'True
Caption = "&Quit"
Height = 350
Left = 4140
TabIndex = 7
Top = 1500
Width = 1000
End
Begin VB.CommandButton CommandExecute
Appearance = 0 'Flat
Caption = "&Execute"
Default = -1 'True
Height = 350
Left = 3060
TabIndex = 6
Top = 1500
Width = 1000
End
Begin VB.TextBox TextInput
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Height = 285
Left = 1440
TabIndex = 1
Text = "Encyrpt This"
Top = 435
Width = 3675
End
Begin VB.Label LabelKey
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
Caption = "Encrypt &Key"
ForeColor = &H80000008&
Height = 255
Left = 60
TabIndex = 8
Top = 90
Width = 1095
End
Begin VB.Label Label2
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
Caption = "Decrypted"
ForeColor = &H80000008&
Height = 255
Left = 60
TabIndex = 4
Top = 1125
Width = 1095
End
Begin VB.Label Label1
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
Caption = "Encrypted"
ForeColor = &H80000008&
Height = 255
Left = 60
TabIndex = 2
Top = 780
Width = 1095
End
Begin VB.Label LabelDecrypt
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
ForeColor = &H80000008&
Height = 255
Left = 1440
TabIndex = 5
Top = 1155
Width = 3675
End
Begin VB.Label LabelEncrypt
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
ForeColor = &H80000008&
Height = 255
Left = 1440
TabIndex = 3
Top = 810
Width = 3675
End
Begin VB.Label LabelText
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
Caption = "&String"
ForeColor = &H80000008&
Height = 255
Left = 60
TabIndex = 0
Top = 435
Width = 1095
End
End
Attribute VB_Name = "Formcrypt"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub CommandExecute_Click()
Formcrypt.LabelEncrypt.Caption = crypt("E", RTrim$(Formcrypt.TextKey.Text), RTrim$(Formcrypt.TextInput.Text))
Formcrypt.LabelDecrypt.Caption = crypt("D", RTrim$(Formcrypt.TextKey.Text), RTrim$(Formcrypt.LabelEncrypt.Caption))
End Sub
Private Sub CommandQuit_Click()
Unload Formcrypt
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -