• 大小: 33.1MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-03
  • 语言: Python
  • 标签: RSA  python  source_code  

资源简介

使用python3实现rsa,所需要的数学知识以及注释都在report里面,代码里面有注释,在运行可执行文件的时候要注意先阅读readme,因为没有刻意增加代码的鲁棒性

资源截图

代码片段和文件信息

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file ‘RSA.ui‘
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore QtGui QtWidgets
from PyQt5.QtCore import *
from PyQt5.QtWidgets import * 
from rsa import *

class Ui_MainWindow(object):
    def setupUi(self MainWindow):
        MainWindow.setobjectName(“MainWindow“)
        MainWindow.resize(800 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setobjectName(“centralwidget“)
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(340 30 72 15))
        self.label.setText(““)
        self.label.setobjectName(“label“)
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setGeometry(QtCore.QRect(320 30 201 51))
        font = QtGui.QFont()
        font.setPointSize(22)
        font.setBold(True)
        font.setWeight(75)
        self.label_2.setFont(font)
        self.label_2.setobjectName(“label_2“)
        self.textEdit = QtWidgets.QTextEdit(self.centralwidget)
        self.textEdit.setGeometry(QtCore.QRect(50 240 151 241))
        self.textEdit.setobjectName(“textEdit“)
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(240 340 51 23))
        self.pushButton.setobjectName(“pushButton“)
        self.textEdit_2 = QtWidgets.QTextEdit(self.centralwidget)
        self.textEdit_2.setGeometry(QtCore.QRect(320 240 151 241))
        self.textEdit_2.setobjectName(“textEdit_2“)
        self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_2.setGeometry(QtCore.QRect(510 340 51 23))
        self.pushButton_2.setobjectName(“pushButton_2“)
        self.textEdit_3 = QtWidgets.QTextEdit(self.centralwidget)
        self.textEdit_3.setGeometry(QtCore.QRect(620 240 151 241))
        self.textEdit_3.setobjectName(“textEdit_3“)
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        self.label_3.setGeometry(QtCore.QRect(50 90 16 41))
        font = QtGui.QFont()
        font.setPointSize(16)
        self.label_3.setFont(font)
        self.label_3.setobjectName(“label_3“)
        self.spinBox = QtWidgets.QSpinBox(self.centralwidget)
        self.spinBox.setGeometry(QtCore.QRect(80 100 51 31))
        self.spinBox.setobjectName(“spinBox“)
        self.spinBox_2 = QtWidgets.QSpinBox(self.centralwidget)
        self.spinBox_2.setGeometry(QtCore.QRect(80 150 51 31))
        self.spinBox_2.setobjectName(“spinBox_2“)
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        self.label_4.setGeometry(QtCore.QRect(50 140 16 41))
        font = QtGui.QFont()
        font.setPointSize(16)
        self.label_4.setFont(font)
        self.label_4.setobjectName(“label_4“)
        self.label_5 = QtWidge

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     832223  2018-12-24 14:45  RSA\report\report.pdf

     文件      10289  2018-12-09 00:19  RSA\source_code\gui.py

     文件       1558  2018-12-09 13:28  RSA\source_code\Math_operation.py

     文件       2834  2018-12-10 14:19  RSA\source_code\rsa.py

     文件        218  2018-12-09 00:18  RSA\source_code\run.py

     文件       6073  2018-12-10 14:18  RSA\source_code\__pycache__\gui.cpython-36.pyc

     文件       1859  2018-12-10 14:18  RSA\source_code\__pycache__\Math_operation.cpython-36.pyc

     文件       2661  2018-12-10 14:19  RSA\source_code\__pycache__\rsa.cpython-36.pyc

     文件        134  2018-12-09 13:33  RSA\可执行文件\Readme.txt

     文件   35149104  2018-12-09 00:22  RSA\可执行文件\RSA.exe

     目录          0  2018-12-10 14:19  RSA\source_code\__pycache__

     目录          0  2018-12-24 14:45  RSA\report

     目录          0  2018-12-10 14:18  RSA\source_code

     目录          0  2018-12-09 13:29  RSA\可执行文件

     目录          0  2018-12-09 00:27  RSA

----------- ---------  ---------- -----  ----

             36006953                    15


评论

共有 条评论