99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務合肥法律

代寫SCC.363、代做Java,c++設(shè)計程序

時間:2024-02-11  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯



202**024 ASSESSMENTS
Undergraduate
Individual Programming
Assessment Weighting [30%]
SCC.363 Security and Risk
Academic Honesty and Integrity
Students at Lancaster University are part of an academic community that values trust,
fairness and respect and actively encourages students to act with honesty and integrity. It is
a University policy that students take responsibility for their work and comply with the
university’s standards and requirements- found in the Manual of Academic Regulations and
Practice. By submitting their answers students will be confirming that the work submitted is
completely their own. By submitting their answers the group of students will be confirming
that the work submitted is that of the group. Academic misconduct regulations are in place
for all forms of assessment and students may familiarise themselves with this via the
university website:
https://www.lancaster.ac.uk/academic-standards-and-quality/regulations-policies-andcommittees/manual-of-academic-regulations-and-procedures/
Plagiarism
Plagiarism involves the unacknowledged use of someone else’s work and passing it off as if it
were one’s own. This covers every form of submitted work, from written essays, video
vignettes, and coding exercises. However, deliberately plagiarism with the intent to deceive
and gain academic benefit is unacceptable. This is a conscious, pre-meditated form of
cheating and is regarded as a serious breach of the core values of the University. More
information may be found via the plagiarism framework website. All coursework is to be
submitted electronically and will be run through our plagiarism detection mechanisms.
Please ensure you are familiar with the University's Plagiarism rules and if you are in any
doubt please contact your module tutor.
https://www.lancaster.ac.uk/academic-standards-and-quality/regulations-policies-andcommittees/principles-policies-and-guidelines/plagiarism-framework/
General Guidance:
This is an individual assessment that will count for 30% of your overall mark for this module.
Learning objectives
• Develop appreciation and understanding of security concepts.
• Formulate troubleshooting methods to identify/solve problems.
• Evaluate information to argue solution choices critically.
• Effectively communicate ideas.
Submission requirements
Prepare and submit your coding solutions on Coderunner. For all coding solutions, you must
use Python3. You can use modules from standard Python3 and cryptography.io. Your code
should include appropriate comments explaining what you do and why. All implementations
must be in Python3, and the cryptography.io library must be used for any cryptographyrelated functions (if needed). If you must consider padding in any task, you should use PKCS7.
Your code should include appropriate comments explaining your solution.
Example of the type of comments you SHOULD AVOID -- the comments don't explain the
solution:
def avalancheCalculator(string1, string2):
 # I hash the strings and generate the hexdigest values
 hexstring1 = hashlib.sha256(string1.encode()).hexdigest()
 hexstring2 = hashlib.sha256(string2.encode()).hexdigest()

 # I convert the hexdigest to integers
 int1 = int(hexstring1, 16)
 int2 = int(hexstring2, 16)
 # I XOR the integers
 intResult = int1 ^ int2

 # I return the 1's in the binary representation.
 return ( bin(intResult).count('1') )
Examples of types of comments that provide adequate information – the comments explain
the solution to the problem:
def avalancheCalculator(string1, string2):
 # A solution to the problem is to xor the integer representation
 # of the two values and count in the resulting int the number of bits
 # having the value of 1.
 hexstring1 = hashlib.sha256(string1.encode()).hexdigest()
 hexstring2 = hashlib.sha256(string2.encode()).hexdigest()

 int1 = int(hexstring1, 16)
 int2 = int(hexstring2, 16)
 intResult = int1 ^ int2

 # The "1"s in the binary representation of the XOR operation
 # represent which bits from int1 and int2 are different.
 # This is due to applying the XOR operation. 0^1 = 1, 1^0 = 1
 # Counting the "1"s will provide how many bits differ
 return ( bin(intResult).count('1') )
You have to upload the implementation of your functions on CodeRunner.
Marking Guidelines:
• You have to answer all three (3) tasks. Marks will be allocated based on the clarity of your
solution, comments in the code, and correctness. More information is provided within the
individual questions.
• The name of functions, type/number of variables, and return values must follow the tasks’
guidelines. Failing to adhere to this may result in not receiving marks.
Deadline for submissions: Friday 16
th February 16:00
TASK 1
--------
You are provided with the ds_hash hash function. The function receives a
finite message as input and produces a non-negative integer, which we
consider to be the hash value of the given message.
The size of input messages is fixed and always equals 64 bytes. Implement an
appropriate attack to check if the hash function ds_hash is strong collision
resistant. Your alphabet should include all lower-case and upper-case letters
of the English alphabet and all numbers from 0 to 9.
# -- START OF YOUR CODERUNNER SUBMISSION CODE
# INCLUDE ALL YOUR IMPORTS HERE
def ds_hash(message: str) -> int:
 hash_value = 0
 for ch in message:
 hash_value = (hash_value * 71) + ord(ch)

 return hash_value & 0x7FFFFFFF
def myAttack() -> bool:
# YOUR IMPLEMENTATION
return # True or False
# -- END OF YOUR CODERUNNER SUBMISSION CODE
#You can test your code in your system (NOT IN YOUR CODERUNNER SUBMISSION)
as follows:
# MAIN
if __name__ == "__main__":
print( myAttack() )
Marking scheme: This task's weight is 35% for providing a valid attack and
commenting on your code.
TASK 2
--------
Implement an HMAC based on the RFC-2104 definition (Section 2). The RFC is
available at the following link: https://www.rfc-editor.org/rfc/rfc2104
Below is the extract from the RFC that describes how the HMAC can be
implemented, and this is what you need to implement. The text is amended to
provide specific information about the selected H cryptographic hash
function, i.e., SHA256.
 The definition of HMAC requires a cryptographic hash function, which
 we denote by H, and a secret key K. In your implementation, assume H
 to be the SHA256 cryptographic hash function.
 We denote by B the byte-length of such blocks (B=64 for SHA256),
 and by L the byte-length of hash outputs (L=** for SHA256).
 The authentication key K can be of any length up to B, the
 block length of the hash function. Applications that use keys longer
 than B bytes will first hash the key using H and then use the
 resultant L byte string as the actual key to HMAC. In any case the
 minimal recommended length for K is L bytes (as the hash output
 length).
 We define two fixed and different strings ipad and opad as follows
 (the 'i' and 'o' are mnemonics for inner and outer):
 ipad = the byte 0x36 repeated B times
opad = the byte 0x5C repeated B times.
 To compute HMAC over the data `text' we perform
 H(K XOR opad, H(K XOR ipad, text))
 Namely,
 (1) append zeros to the end of K to create a B byte string
 (e.g., if K is of length 20 bytes and B=64, then K will be
 appended with 44 zero bytes 0x00)
 (2) XOR (bitwise exclusive-OR) the B byte string computed in step
 (1) with ipad
 (3) append the stream of data 'text' to the B byte string resulting
 from step (2)
 (4) apply H to the stream generated in step (3)
 (5) XOR (bitwise exclusive-OR) the B byte string computed in
 step (1) with opad
 (6) append the H result from step (4) to the B byte string
 resulting from step (5)
 (7) apply H to the stream generated in step (6) and output
 the result
The function's name has to be CustomHMAC and defined as follows.
# -- START OF YOUR CODERUNNER SUBMISSION CODE
# INCLUDE ALL YOUR IMPORTS HERE
def CustomHMAC(key: bytes, text: str) -> str:
# YOUR IMPLEMENTATION
return # YOUR RESULT
# -- END OF YOUR CODERUNNER SUBMISSION CODE
#You can test your code in your system (NOT IN YOUR CODERUNNER SUBMISSION)
as follows:
# MAIN
if __name__ == "__main__":
 k = os.urandom(16) # k is <class 'bytes'>
 txt = "hello world!!!!" # txt is <class 'str'>

 print( CustomHMAC(k, txt) )
 # The output will be a string of hexadecimal values, e.g.: a51b … 35fa

You can debug your code against the result from the following function:
from cryptography.hazmat.primitives import hashes, hmac
def HMAC_from_Cryptography(key: bytes, text: str) -> str:
 h = hmac.HMAC(key, hashes.SHA256())
 h.update(text.encode())
 signature = h.finalize().hex()

 return signature
Marking scheme: This task's weight is 40%, which will be allocated equally
for correctly implementing the steps and commenting on your code.
TASK 3
--------
Using the AES-ECB encryptor from the cryptography.io module, implement the
AES mode in Figure 1. You can instantiate an AES-ECB encryptor as follows:
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms,
modes
key = # SELECT AN APPROPRIATE KEY FOR AES
cipher = Cipher(algorithms.AES(key), modes.ECB())
encryptor = cipher.encryptor()
Figure 1 - The figure describes a mode of AES for encrypting plaintext to ciphertext
The function's name has to be CustomAESmode and defined as follows:
# -- START OF YOUR CODERUNNER SUBMISSION CODE
# INCLUDE ALL YOUR IMPORTS HERE
def CustomAESMode(key: bytes, iv: bytes, plaintext: str) -> str:
# YOUR IMPLEMENTATION
return # THE CIPHERTEXT
# -- END OF YOUR CODERUNNER SUBMISSION CODE
#You can test your code in your system (NOT IN YOUR CODERUNNER SUBMISSION)
as follows:
# MAIN
if __name__ == "__main__":
 key = bytes.fromhex("06a9214036b8a15b512e03d534120006")
 iv = bytes.fromhex("3dafba429d9eb430b422da802c9fac41")
 txt = "This is a text"

 print( CustomAESMode(key, iv, txt) )
 # The result using the above input should be:
1827bfc04f1a455eb101b943c44afc1d
Marking scheme: This task's weight is 25%, which will be allocated equally
for correctly implementing the steps and commenting on your code.
如有需要,請加QQ:99515681 或WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:代做CA3 Group程序、Java編程設(shè)計代寫
  • 下一篇:CS170程序代做、Python編程設(shè)計代寫
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設(shè)計優(yōu)化
    急尋熱仿真分析?代做熱仿真服務+熱設(shè)計優(yōu)化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發(fā)動機性能
    挖掘機濾芯提升發(fā)動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機亮相AWE 復古美學與現(xiàn)代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務 | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          一本色道久久加勒比88综合| 欧美三级网址| 欧美日韩视频在线一区二区观看视频 | 玖玖玖国产精品| 国产亚洲亚洲| 欧美日韩免费在线观看| 最新热久久免费视频| 久久综合九九| 亚洲福利免费| 欧美成人午夜| 亚洲精品欧美极品| 久久久久国产一区二区| 国产在线麻豆精品观看| 久久综合色婷婷| 亚洲精品精选| 影音先锋另类| 欧美日韩在线免费| 午夜精品在线观看| 一区二区三区在线免费视频| 久久夜色精品一区| 亚洲伦理在线观看| 国产精品亚洲综合久久| 久久精品国产亚洲精品| 91久久精品日日躁夜夜躁欧美| 欧美日韩99| 欧美伊人久久大香线蕉综合69| 激情欧美亚洲| 国产精品视频导航| 久久综合九色| 免费欧美在线视频| 亚洲在线观看| 亚洲国产精品成人精品| 国产精品扒开腿做爽爽爽视频| 久久精品卡一| 一本综合精品| 精品96久久久久久中文字幕无| 欧美黑人在线播放| 欧美在线影院| 亚洲精品一区二区网址 | 欧美jizz19性欧美| 宅男精品视频| 91久久国产综合久久蜜月精品| 国产精品v日韩精品| 欧美三级电影一区| 国产欧美日韩精品在线| 欧美三级网址| 国产精品一区二区在线| 欧美色精品天天在线观看视频| 久久久欧美一区二区| 午夜精品婷婷| 久久午夜色播影院免费高清| 欧美在线免费观看视频| 久久久91精品国产一区二区精品| 亚洲小视频在线观看| 狠狠色狠狠色综合日日五| 国产精品久久久99| 欧美日本一区二区三区| 欧美激情一区二区三区| 欧美gay视频| 国产精品亚洲激情| 国产精品日韩精品| 红桃av永久久久| 99re6这里只有精品| 亚洲乱码国产乱码精品精可以看 | 国产精品视频大全| 国内不卡一区二区三区| 国产精品一区二区你懂得| 在线精品视频免费观看| 在线日韩中文| 亚洲第一在线综合网站| 亚洲一二区在线| 午夜欧美理论片| 欧美在线免费观看亚洲| 久久久99精品免费观看不卡| 久久精品在线| 国产精品久久91| 亚洲精品视频在线观看网站| 亚洲乱码国产乱码精品精天堂| 欧美一级大片在线观看| 亚洲午夜在线| 欧美成人亚洲| 韩日午夜在线资源一区二区| 激情成人综合| 亚洲国产精品福利| 9久re热视频在线精品| 亚洲综合第一页| 久久人人九九| 国产亚洲女人久久久久毛片| 1000部精品久久久久久久久| 亚洲男女自偷自拍| 欧美日韩在线观看视频| 亚洲精品一区二区三区婷婷月 | 国内精品久久久久伊人av| 午夜日韩福利| 蜜臀av在线播放一区二区三区| 欧美电影美腿模特1979在线看 | 加勒比av一区二区| 久久久久久久97| 欧美大片免费看| 亚洲韩国日本中文字幕| 美女脱光内衣内裤视频久久影院| 激情综合视频| 狂野欧美激情性xxxx欧美| 亚洲第一在线综合在线| 蜜桃伊人久久| 国产亚洲电影| 日韩视频永久免费观看| 欧美色区777第一页| 亚洲无线观看| 欧美黑人多人双交| 日韩系列在线| 国产嫩草影院久久久久| 99精品福利视频| 狂野欧美一区| 亚洲日本va午夜在线电影 | 国产欧美精品xxxx另类| 欧美一区二区黄| 欧美小视频在线| 亚洲欧洲在线播放| 欧美日韩国产在线看| 亚洲一区久久久| 国产模特精品视频久久久久 | 亚洲大胆在线| 久久大综合网| 亚洲第一天堂av| 欧美午夜一区二区| 亚洲精品一区二区在线观看| 欧美午夜精品电影| 99国产欧美久久久精品| 国产精品综合色区在线观看| 久久精品二区| 日韩视频一区二区三区在线播放| 免费在线看成人av| 中文网丁香综合网| 欧美性猛交xxxx免费看久久久 | 欧美在线播放视频| 亚洲精品视频在线| 国产午夜精品一区二区三区欧美| 免费日韩av片| 午夜一区二区三区不卡视频| 国产精品裸体一区二区三区| 99国产精品久久久久老师 | 久久九九免费视频| av成人福利| 黄色成人av| 欧美视频网址| 欧美高清视频在线| 亚洲人成人一区二区三区| 欧美 日韩 国产在线| 亚洲黄色在线| 欧美日产一区二区三区在线观看 | 欧美伊人精品成人久久综合97| 国产精品久久久久99| 欧美一区二区三区啪啪| 日韩亚洲成人av在线| 亚洲黄色免费| 一区视频在线看| 国产在线观看91精品一区| 久久亚洲欧美| 亚洲国产欧美不卡在线观看| 国产精品美女久久久久久2018 | 欧美激情一区二区久久久| 99视频精品免费观看| 在线观看日韩av电影| 国模精品一区二区三区| 国产日韩欧美精品在线| 噜噜噜91成人网| 久久免费视频这里只有精品| 午夜精品影院在线观看| 欧美在线观看日本一区| 91久久精品国产91性色| 一区视频在线| 亚洲人成人一区二区在线观看| 亚洲第一视频网站| 亚洲欧洲另类| 亚洲黄网站在线观看| 亚洲国产中文字幕在线观看| 亚洲国产欧美日韩| 亚洲精品一区二区三区99| 99精品热视频| 亚洲欧美在线另类| 欧美一区二区三区视频在线观看| 欧美亚洲一区二区在线| 欧美中文字幕在线观看| 久久精品夜色噜噜亚洲a∨| 久久久久久久综合日本| 欧美成人精精品一区二区频| 欧美黑人在线观看| 久久久91精品国产一区二区三区 | 欧美日本中文字幕| 国产精品啊啊啊| 国产日韩欧美麻豆| 国产精品a级| 国产日韩精品在线观看| 尤物视频一区二区| 99热在这里有精品免费| 中文亚洲视频在线| 久久在线视频在线| 国产精品久久久久aaaa| 狠狠色丁香婷婷综合久久片|