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

📄 rsa.frm

📁 不错的一个VB菜单设计 界面和功能都不错
💻 FRM
字号:
VERSION 5.00
Object = "{75D4F6FF-8785-11D3-93AD-0000832EF44D}#1.1#0"; "FAST2005.ocx"
Begin VB.Form frmRSA 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "RSA Example"
   ClientHeight    =   3195
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6075
   Icon            =   "rsa.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3195
   ScaleWidth      =   6075
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin FLWData.FWRSA objRSA 
      Left            =   5280
      Top             =   240
      _ExtentX        =   820
      _ExtentY        =   820
      PublicKey       =   38735617
      PrivateKey1     =   80553287
      PrivateKey2     =   18431159
   End
   Begin VB.CommandButton Command3 
      Caption         =   "Decode"
      Height          =   405
      Left            =   3390
      TabIndex        =   9
      Top             =   2670
      Width           =   1515
   End
   Begin VB.CommandButton Command2 
      Caption         =   "Code"
      Height          =   405
      Left            =   990
      TabIndex        =   8
      Top             =   2670
      Width           =   1515
   End
   Begin VB.TextBox Text2 
      Height          =   885
      Left            =   180
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   7
      Text            =   "rsa.frx":000C
      Top             =   1620
      Width           =   5715
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Generate keys"
      Height          =   375
      Left            =   3210
      TabIndex        =   6
      Top             =   180
      Width           =   1365
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H8000000F&
      Height          =   345
      Index           =   2
      Left            =   1290
      Locked          =   -1  'True
      TabIndex        =   5
      Top             =   1080
      Width           =   1515
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H8000000F&
      Height          =   345
      Index           =   1
      Left            =   1290
      Locked          =   -1  'True
      TabIndex        =   3
      Top             =   630
      Width           =   1515
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H8000000F&
      Height          =   345
      Index           =   0
      Left            =   1290
      Locked          =   -1  'True
      TabIndex        =   1
      Top             =   180
      Width           =   1515
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "Private Key 2"
      Height          =   195
      Index           =   2
      Left            =   240
      TabIndex        =   4
      Top             =   1170
      Width           =   945
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "Private Key 1"
      Height          =   195
      Index           =   1
      Left            =   240
      TabIndex        =   2
      Top             =   720
      Width           =   945
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "Public Key"
      Height          =   195
      Index           =   0
      Left            =   240
      TabIndex        =   0
      Top             =   270
      Width           =   750
   End
End
Attribute VB_Name = "frmRSA"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
  Call objRSA.GenerateKeys
  
  Text1(0) = objRSA.PublicKey
  Text1(1) = objRSA.PrivateKey1
  Text1(2) = objRSA.PrivateKey2
End Sub

Private Sub Command2_Click()
  Text2 = objRSA.Encode(Text2, objRSA.PrivateKey1, objRSA.PublicKey)
End Sub

Private Sub Command3_Click()
  Text2 = objRSA.Decode(Text2, objRSA.PrivateKey2, objRSA.PublicKey)
End Sub

⌨️ 快捷键说明

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