国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫SCC.363、代做Java,c++設計程序

時間:2024-02-11  來源:合肥網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編程設計代寫
  • 下一篇:CS170程序代做、Python編程設計代寫
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产精品视频网| 久久97精品久久久久久久不卡| 亚洲伊人婷婷| 日本成人黄色| 日韩精品欧美一区二区三区| 久久精品国产久精国产一老狼| 日本一区免费看| 国产精品久久久久久av福利软件 | 最新欧美日韩亚洲| av 日韩 人妻 黑人 综合 无码| 日韩精品―中文字幕| 久久久女人电视剧免费播放下载| 美女啪啪无遮挡免费久久网站| 亚洲一区美女视频在线观看免费| 国产精品丝袜久久久久久不卡| 国产不卡一区二区三区在线观看| 91精品国产高清久久久久久91裸体| 91久久久国产精品| 久久久国产视频91| 久久成人免费观看| 久久亚洲综合网| 日韩中文理论片| 99久热re在线精品996热视频| 欧美专区中文字幕| 欧美日韩在线高清| 欧美久久电影| 日韩在线视频导航| 精品综合久久久久久97| 日本国产一区二区三区| 午夜精品久久久久久久99黑人 | 日韩亚洲国产中文字幕| 亚洲精品第一区二区三区| 粉嫩高清一区二区三区精品视频| 国产精品久久久久久中文字| 欧美成人精品欧美一级乱| 波多野结衣成人在线| 国产精品综合网站| 国产又爽又黄的激情精品视频| aaa免费在线观看| 国产一区欧美二区三区| 欧美欧美一区二区| 精品国产乱码久久久久软件 | 丰满少妇久久久| 国产午夜大地久久| 国产一区二区高清不卡| 99久久无色码| 精品国模在线视频| 国产成人无码精品久久久性色| 精品视频导航| 精品乱码一区| 欧美日韩成人在线播放| 久久99热精品| 日本中文字幕久久看| 久久免费视频2| 国内精品久久久久久影视8| 日韩激情视频| 狠狠久久综合婷婷不卡| 99中文字幕| 久久久999成人| 欧美极品少妇无套实战| 在线一区亚洲| 日韩国产精品毛片| 国产午夜福利在线播放| 久久亚洲精品欧美| 国产成人精品a视频一区www| 日韩欧美在线播放视频| 久久精品国产亚洲7777| 亚洲一区久久久| 欧美亚洲免费在线| 国产精品偷伦免费视频观看的| 日韩综合中文字幕| 欧美一区二区三区四区在线观看地址| 欧美性资源免费| 欧美一二三视频| 国产区日韩欧美| 成人h在线播放| 久久深夜福利免费观看| 日韩视频在线观看国产| 久久久午夜视频| 成人国产精品日本在线| 亚洲自拍中文字幕| 国产精品一二区| 国产一区二区网| 国产一区福利视频| 国产欧美日韩免费看aⅴ视频| 久久99青青精品免费观看| 国产一区二区三区高清视频| 日韩视频免费观看| 日本高清视频精品| 91免费的视频在线播放| 日本高清视频精品| 国产精品视频一区二区三区四 | 日本一区二区三区视频在线观看| 久久久久久久久综合| 久久国产亚洲精品无码| 91精品国产91久久久久久| 99久久精品免费看国产一区二区三区 | 亚洲免费视频一区| 免费国产成人看片在线| 国产精品女主播视频| 免费国产黄色网址| 亚洲精品欧美日韩| 在线日韩av永久免费观看| 激情视频一区二区| 久久96国产精品久久99软件| 国产日韩在线看| 青青草久久网络| 欧美一级特黄aaaaaa在线看片| 久久人人97超碰精品888| 欧美一区二区福利| 北条麻妃久久精品| 91精品国产99久久久久久红楼| 国产在线精品日韩| 激情综合网婷婷| 人妻无码视频一区二区三区 | 精品乱码一区| 久久久久免费精品| 欧美日本亚洲| 婷婷久久青草热一区二区| 欧美激情a∨在线视频播放| 国产精品久久久对白| 99久热re在线精品996热视频| 欧美日韩一区二区三区免费| 中文字幕精品在线播放| 国产精品视频资源| 国产精品久久久久久久久电影网| 久久久久久国产精品一区| 国产黄色激情视频| 国产精品一区二区三区不卡| 日韩美女免费观看| 欧美又大又粗又长| 国产性生交xxxxx免费| 国产欧美日韩伦理| 粉嫩av一区二区三区天美传媒| 99久久综合狠狠综合久久止| 色噜噜国产精品视频一区二区 | 国产精品无码乱伦| 国产精品美腿一区在线看| 国产精品久久久久久影视| 国产精品青青草| 正在播放国产精品| 人妻无码视频一区二区三区| 成人毛片网站| 国产精品成人观看视频免费| 欧美在线视频观看| 91精品国产综合久久香蕉最新版 | 91精品国产成人| 欧美精品一区二区三区国产精品| 成年人网站国产| 欧美 日韩 亚洲 一区| 日本欧美国产在线| 日韩欧美精品在线不卡| 日韩免费一区二区三区| www.九色.com| 欧美精品videos| 国产日韩欧美二区| 国产精品国产一区二区| 久久精品国产精品亚洲色婷婷| 一区二区三区免费看| 国产一区不卡在线观看| 国产精品综合久久久久久| 国产日韩欧美夫妻视频在线观看| caoporn国产精品免费公开| 欧美精品在线免费观看| 欧美精品一区二区三区免费播放| 久久久国产精品一区二区三区| 国产欧美一区二区| 国产精品免费一区二区三区都可以 | 99久久国产免费免费| 日韩有码在线电影| 日本一区二区视频| 久久久久久免费精品| 热久久这里只有| 国产精品久久国产精品| 国产性生活免费视频| 亚洲精品国产精品国自产观看| 国产麻豆电影在线观看 | 无码内射中文字幕岛国片| av免费观看久久| 91精品国产99久久久久久红楼| 日本一区二区久久精品| 岛国一区二区三区高清视频| 久久久久成人网| 亚洲高清资源综合久久精品 | 成人免费毛片在线观看| 麻豆av一区| 日韩少妇中文字幕| 久久久噜噜噜久久| 在线观看亚洲视频啊啊啊啊 | 91免费在线视频| 亚洲图片在线观看| 国产欧美精品xxxx另类| 久久久国产精品视频| 欧美日韩国产不卡在线看| 国产精品精品软件视频| 成人av蜜桃| 欧美在线中文字幕| 欧美激情视频一区| 色妞在线综合亚洲欧美| youjizz.com亚洲|