首页 > 其他分享 >Cipher and Row Transposition Cipher

Cipher and Row Transposition Cipher

时间:2024-11-29 18:43:32浏览次数:4  
标签:Cipher Transposition work will program your Row

Assignment One: Implementation of Autokey Cipher and Row Transposition Cipher

CE235 Assignment One

2024-2025

University of Essex

  1. Task of Assignment OneThe aim of Assignment One is to write a Python program, which will implement the Autokey cipher and the Row transpositioncipher. The introduction of the two ciphers can be found from the lecture notes.Specifically, this assignment task is expected to do the following:
  • Design (with flowcharts) and develop a Python program with encryption and decryption functions for Autokeycipher and the Row transposition cipher.
  • For the Row transposition cipher, if the length of the plaintext message (number of letters in message) is notmultiple times of the key length, you can add several letters to the end of the message before encryption, and delete

these added letters after decryption to recover the original message.

A sample Python program caesar.py for Caesar cipher is provided for reference. The sample Python program can be run withdefault demo message and key from the command line in Terminal window like this:python caesar_ciphyer.pyThis reference program caesar_ciphyer.py encrypts a given messageand then performs decryption. After thecaesar_ciphyer.py program is run, it will display 代写Cipher and Row Transposition Cipher the plaintext, ciphertext, and the decrypted plaintext. If the cipher workscorrectly, the plain text and decrypted text should bethesame.Your program for these two ciphers should have a name like ak_registrationnumber.py (replace registrationnumber withyour own registration number). Your program must run from command line like this (with a registration number 123456) :python ak_123456.pyThe outputs of ak_registrationnumber.py (including the key, plaintext, ciphertext and decrypted text) are required to bedisplayed, following the display format given in the reference program caesar_ciphyer.py.

  1. How to submitSubmit one python program file to Faser with the following filename (replace registration number by your own one):ak_registrationnumber.pySubmission deadline is Wednesday04/12/2024 (UK time: 23:59); Beijing time: Thursday, 7:59, 05/12/2024.
  1. Marking SchemeThere are 12 marks for this assignment (out of 100 marks for the overall module marks).
  1. 1) Flowcharts for the Autokey cipher and the Row transposition cipher take 1 mark The functions for the Autokeycipher and the Row transposition cipher take 5 marks and 5 marks, respectively.
  1. 2) You will be asked by Professor He or the teaching assistants at NWU to demonstrate your work (including flowchartsand program) and answer some questions to ensure it is your own work. Marks will be given according to the quality ofyour work and the demonstration. If you are asked to but you don’t demonstrate your work, no mark will be given to yourassignment work.
  1. 3) Apart from demonstration of your work to the teaching staff members, it is mandatory for you to submit your programfile to Faser (flowcharts are not to be submitted to Faser). You will not get mark for your work on the assignment if yourprogram is not submitted to Faser. If your submission islate, there will penalty on your mark according to the universitypolicy.
  1. 4) Extra check of your submitted program may be conducted by Professor He. If any programming or plagiarism problemsare found from the check, your marks will be deducted.
  2. PlagiarismYou should work individually on this assignment. Anything you submit is assumed to be entirely your own work. The usual

标签:Cipher,Transposition,work,will,program,your,Row
From: https://www.cnblogs.com/CSE231/p/18576353

相关文章

  • F Make Them Narrow
    题意就是有n个数,现在让你减去k个,让剩下数的最大值减去最小值最小;首先,排序是一定要的。既然减去了k个数,那剩下还有n-k个数,这就形成了一个区间,而区间的个数就是k+1个,我们可以通过模拟删除除区间内的数之外的数,来枚举每个值。//为什么是k+1个区间自己算一下就知道了例如52315......
  • 精准医学 | Scipher Medicine开发的MSRC预测TNFi疗效不佳
    #文献速递 #精准医学 #类风湿关节炎++++++++++++++++++1. Scipher Medicine在ACR2024的一篇投稿, 证实了一些人关于"TNFi处方量下降"的担心. 但是可以推测, 相关药监/各种医疗保险可能会高兴. 这也可能会激发我们的好奇心, 即有没有可能开发融合蛋白型TNFi的专用疗效预测......
  • 记录Vue Antd 表格RowSelection刷新列表后缓存问题
    起因 原来的代码//tsx部分<BaseTableoptions={tableData.options}columns={tableData.columns}data={tableData.data}/>constselectKeys=ref<string[]>([])//表格配置consthandleRowSelection={......
  • 用友U8CRM ajaxgetborrowdata.php下多方法sql注入漏洞复现
    0x01产品描述:     用友U8CRM‌是用友ERP-U8的重要组成部分,提供全面的客户关系管理功能,包括客户管理、意向管理、商机管理、活动管理、费用管理、竞争管理、销售文档管理等‌1。它支持长销售周期企业以漏斗为核心的SFA(销售自动化)管理和重复购买企业以金字塔为核心的......
  • .NET9 EFcore支持早期MSSQL数据库 ROW_NUMBER()分页
    前言NET程序员是很幸福的,MS在上个月发布了NET9.0RTM,带来了不少的新特性,但是呢,我们是不是还有很多同学软硬件都还没更上,比如,自己的电脑还在跑Win7,公司服务器还在跑MSSQL2005-2008的!这不就引入了我们本文要探索的问题,因为MS早在EFcore3.1后就不再内置支持ROW_NUMBER()了,......
  • 如何在ixBrowser中添加并使用Netnut
    如何在ixBrowser中添加并使用Netnut步骤1:首先进入Netnut官网,点击进入工作台,若你已经购买了代理,你可以在上方选择代理类型,国家,输入目标访问地址,并获取去代理信息;步骤2:打开ixBrowser,点击创建窗口,选择平台并输入窗口信息;步骤3:点击下一步进入代理配置界面,选择代理方式为自定......
  • MySQL中的ROW_NUMBER窗口函数简单了解下
    ROW_NUMBER()是MySQL8引入的窗口函数之一,它为查询结果集中的每一行分配一个唯一的顺序号(行号)。这个顺序号是基于窗口函数的ORDERBY子句进行排序的,可以根据指定的排序顺序生成连续的整数值。ROW_NUMBER()在分页、去重、分组内排序等场景中非常有用。本文涉及到的脚本测试请......
  • 【LaTeX】13表格梳理:基本表格、跨行(multirow)和跨列(multicolumn)表格
    【LaTeX】表格梳理:基本表格、跨行(multirow)和跨列(multicolumn)表格写在最前面一、基本表格1.表头标题2.常用选项[htbp]3.其他二、表格美化1.跨列(multicolumn)2.跨行(multirow)三、全部latex代码四、小结......
  • 解决WPF WebBrowser当前页面的脚本错误问题
    因为会有用户要求,需要将客户端体积最小化,不能使用新的浏览器控件,只能使用WebBrowser。而WebBrowser是IE内核的,现在很多js的API已经不能识别了。所以会报脚本错误,类似下面这样 解决方法的原理:WebBrowser内部是一个InternetExplorer实例,对应的是IWebBrowser2实例。IWebBrowse......
  • F - Takahashi in Narrow Road
    F-TakahashiinNarrowRoadProblemStatementThereisaroadextendingeastandwest,and$N$personsareontheroad.Theroadextendsinfinitelylongtotheeastandwestfromapointcalledtheorigin.The$i$-thperson$(1\leqi\leqN)$isinitial......