📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "随机CFS编码生成"
ClientHeight = 1320
ClientLeft = 60
ClientTop = 345
ClientWidth = 4440
LinkTopic = "Form1"
ScaleHeight = 1320
ScaleWidth = 4440
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "生成"
Height = 495
Left = 1200
TabIndex = 1
Top = 720
Width = 2055
End
Begin VB.TextBox Text1
Height = 375
Left = 120
TabIndex = 0
Top = 120
Width = 4215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Function CfsEnCode(CodeStr)
Dim CodeLen
Dim CodeSpace
Dim NewCode
Dim cecr
CodeLen = 30
CodeSpace = CodeLen - Len(CodeStr)
If Not CodeSpace < 1 Then
For cecr = 1 To CodeSpace
CodeStr = CodeStr & Chr(21)
Next
End If
NewCode = 1
Dim Been
Dim cecb
For cecb = 1 To CodeLen
Been = CodeLen + Asc(Mid(CodeStr, cecb, 1)) * cecb
NewCode = NewCode * Been
Next
CodeStr = NewCode
NewCode = Empty
Dim cec
For cec = 1 To Len(CodeStr)
NewCode = NewCode & CfsCode(Mid(CodeStr, cec, 3))
Next
For cec = 20 To Len(NewCode) - 18 Step 2
CfsEnCode = CfsEnCode & Mid(NewCode, cec, 1)
Next
End Function
Function CfsCode(Word)
Dim cc
For cc = 1 To Len(Word)
CfsCode = CfsCode & Asc(Mid(Word, cc, 1))
Next
CfsCode = Hex(CfsCode)
End Function
Private Sub Command1_Click()
Randomize Timer
Text1.Text = CfsEnCode(CfsEnCode(CStr(Rnd ^ 5)))
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -