⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 endedemo.frm

📁 产生程序序列号的范例
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form frmEnDeDemo 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Serial code, key code, encryption and decryption"
   ClientHeight    =   5475
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5145
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5475
   ScaleWidth      =   5145
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdExit 
      BackColor       =   &H80000004&
      Caption         =   "Exit"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   405
      Left            =   2100
      Style           =   1  'Graphical
      TabIndex        =   13
      ToolTipText     =   "Generate TV key code"
      Top             =   4800
      Width           =   1365
   End
   Begin VB.CommandButton cmdGetPass 
      BackColor       =   &H80000004&
      Caption         =   "Get pass"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3510
      Style           =   1  'Graphical
      TabIndex        =   12
      ToolTipText     =   "Verify user entered key code"
      Top             =   4170
      Width           =   1365
   End
   Begin VB.TextBox txbTestPassword 
      BackColor       =   &H80000018&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000002&
      Height          =   345
      Left            =   210
      TabIndex        =   11
      Top             =   4140
      Width           =   3045
   End
   Begin VB.TextBox txbEncryptedKeyCode 
      BackColor       =   &H80000018&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000002&
      Height          =   345
      Left            =   240
      TabIndex        =   8
      Top             =   2760
      Width           =   3015
   End
   Begin VB.CommandButton cmdEncryptKeyCode 
      BackColor       =   &H80000004&
      Caption         =   "Encrypt"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3510
      Style           =   1  'Graphical
      TabIndex        =   7
      ToolTipText     =   "Encrypt key code"
      Top             =   2760
      Width           =   1365
   End
   Begin VB.CommandButton cmdGenKeyCode 
      BackColor       =   &H80000004&
      Caption         =   "Gen Keycode"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3510
      Style           =   1  'Graphical
      TabIndex        =   6
      ToolTipText     =   "Generate key code"
      Top             =   1890
      Width           =   1365
   End
   Begin VB.TextBox txbKeyCode 
      BackColor       =   &H80000018&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000002&
      Height          =   345
      Left            =   240
      Locked          =   -1  'True
      TabIndex        =   2
      TabStop         =   0   'False
      Top             =   1890
      Width           =   3045
   End
   Begin VB.CommandButton cmdGenSerialCode 
      BackColor       =   &H80000004&
      Caption         =   "Gen Serial"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3510
      Style           =   1  'Graphical
      TabIndex        =   1
      ToolTipText     =   "Generate serial number"
      Top             =   1080
      Width           =   1395
   End
   Begin VB.TextBox txbSerialCode 
      BackColor       =   &H80000018&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000002&
      Height          =   345
      Left            =   240
      Locked          =   -1  'True
      TabIndex        =   0
      TabStop         =   0   'False
      Top             =   1080
      Width           =   3045
   End
   Begin VB.Label Label5 
      Caption         =   $"EnDeDemo.frx":0000
      Height          =   675
      Left            =   240
      TabIndex        =   10
      Top             =   3360
      Width           =   4545
   End
   Begin VB.Label Label4 
      Caption         =   "Encrypted key code:"
      Height          =   225
      Left            =   240
      TabIndex        =   9
      Top             =   2520
      Width           =   1605
   End
   Begin VB.Label Label3 
      Caption         =   "Key code:"
      Height          =   225
      Left            =   270
      TabIndex        =   5
      Top             =   1650
      Width           =   1305
   End
   Begin VB.Label Label1 
      Caption         =   $"EnDeDemo.frx":00BB
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   645
      Left            =   300
      TabIndex        =   4
      Top             =   60
      Width           =   4365
   End
   Begin VB.Label label2 
      Caption         =   "Serial code:"
      Height          =   225
      Left            =   270
      TabIndex        =   3
      Top             =   840
      Width           =   1305
   End
End
Attribute VB_Name = "frmEnDeDemo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' EnDeDemo.frm
'
' By Herman Liu
'
' ---------------------------------------------------------------------------------------
' This piece of code attempts to serve as an illustration of a few very basic points
' involved in the broad issue of random serial no. generation, key code derivation there-
' from, and encryption and decryption of the key code.  It is written in response to

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -