加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

代寫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編程設計代寫
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    风间由美中文字幕在线看视频国产欧美| 日韩情爱电影在线观看| 麻豆国产精品| 久久精品亚洲一区二区| 成人影院在线| 精品中文字幕一区二区三区av| 欧美猛男同性videos| 高清亚洲高清| 国产精品99在线观看| 国产精品av久久久久久麻豆网| 香蕉国产成人午夜av影院| 久久av影院| 碰碰在线视频| 国产一区二区精品| 99成人超碰| 日韩黄色av| 国产成人视屏| 国产欧美一级| 国产极品久久久久久久久波多结野| 日韩亚洲国产欧美| 久久国产中文字幕| 激情小说亚洲图片| 精品国产18久久久久久二百| 中文字幕乱码亚洲无线精品一区 | 一区二区三区福利| 成人福利视频| 蜜桃久久av一区| 日韩视频在线一区二区三区| 久久亚洲成人| 精品国产aⅴ| 日韩视频一二区| 久久不见久久见免费视频7| 欧美精品导航| 久久久久97| 国产精品www.| 国语对白精品一区二区| 免费在线欧美黄色| 久久精品国产亚洲aⅴ| 亚洲va中文在线播放免费| 国产日韩电影| 在线视频cao| 国产欧美一区二区三区精品酒店| 日本久久一二三四| 91麻豆国产自产在线观看亚洲| 丝袜亚洲精品中文字幕一区| 亚洲欧美久久久| 性色一区二区三区| 另类天堂av| 免费人成精品欧美精品| 久热精品在线| 久久久久久自在自线| 色婷婷热久久| h片在线观看视频免费免费| 韩国久久久久久| 日韩精品诱惑一区?区三区| 蜜桃av在线| 欧美91在线|欧美| 老司机午夜精品99久久| 99久久伊人| 亚洲人metart人体| 日韩中文字幕麻豆| 91欧美国产| 怡红院成人在线 | 色喇叭免费久久综合| 精品国产乱子伦一区二区| 综合色就爱涩涩涩综合婷婷| 国产精品三级| 视频一区中文字幕精品| 成人综合一区| 一本一道久久a久久| 青青草国产成人av片免费| 亚洲精品系列| 高清精品久久| 精品国产亚洲一区二区三区| 欧美黄色影院| 狠狠入ady亚洲精品经典电影| 99热免费精品| 成人福利av| 日韩精品欧美精品| 国产精品欧美日韩一区| 亚洲国产中文在线| 欧美日韩激情| 美国欧美日韩国产在线播放| 天天综合网站| 亚洲人体av| 中文一区二区三区四区| 久久日文中文字幕乱码| 亚洲一区日韩| 精品国产欧美日韩一区二区三区| 麻豆91在线播放免费| 亚洲精品播放| 亚洲黑丝一区二区| 日韩av在线播放网址| 成人一区视频| 99精品视频在线免费播放 | 亚洲日本欧美| 婷婷综合一区| 国产在线不卡| 日韩综合精品| 精品一区二区三区中文字幕| 久久99偷拍| 色中色综合网| 亚洲精品黄色| 久久久久国产精品午夜一区| 亚洲神马久久| 美女性感视频久久| av在线亚洲色图| 久久亚洲综合| 六月丁香婷婷久久| 欧美日韩麻豆| 色综合久久网| 欧美另类中文字幕| 欧美1区3d| 精精国产xxxx视频在线野外| 欧美精品国产一区| 久久综合电影| 欧美aa在线| 久久99国产精品视频| av亚洲免费| 欧美一区高清| 成人精品亚洲| 日韩欧美看国产| 视频一区视频二区欧美| 久久午夜精品一区二区| 欧美精品播放| 欧美大人香蕉在线| 亚洲国产二区| 欧美xxxx在线| 超碰这里只有精品| 欧美韩一区二区| 亚洲欧洲自拍| 亚洲91网站| 黄视频网站在线观看| 亚洲黄页在线观看| 蜜桃视频一区| 欧美成人一级| 久久亚洲不卡| 欧一区二区三区| 亚洲欧美视频一区二区三区| 亚洲精品激情| 亚洲电影影音先锋| 日本aⅴ精品一区二区三区| 欧美高清不卡| 久久一区精品| 午夜视频一区| 成人亚洲精品| 日韩精品一级中文字幕精品视频免费观看| 亚洲日本久久| 亚洲一区二区成人| 久久99国产精品视频| 国产精品久久久久久| 日韩黄色在线观看| 日韩久久精品| 群体交乱之放荡娇妻一区二区| 国产精品久久久久久妇女| 99精品在线| 亚洲精品孕妇| 热久久久久久久| 精品精品视频| 日韩精品不卡一区二区| 精品久久中文| 日韩精品亚洲一区| 国产一区成人| 日韩成人精品视频| yw.尤物在线精品视频| 国产一区久久| 欧美黄色一区| h片在线观看视频免费| 91亚洲无吗| 久久精品国产久精国产爱| 最新欧美人z0oozo0| 国产一卡不卡| 免费毛片b在线观看| 九色精品91| 日韩激情网站| 久久精品国内一区二区三区 | 91日韩在线| 欧美a大片欧美片| 久久悠悠精品综合网| 国产伦久视频在线观看| 色爱av综合网| 亚洲欧洲一二区| 天堂av在线| 好看的av在线不卡观看| 日韩影片在线观看| 国产精品久久国产愉拍| 蜜臀久久久99精品久久久久久| 红杏视频成人| 国语精品视频| 亚洲国产二区| 美国毛片一区二区三区| 久久资源中文字幕| 日韩激情在线观看| 欧美一级网站| 神马午夜在线视频| 99国产精品99久久久久久粉嫩| 51vv免费精品视频一区二区| 日本成人中文字幕| 在线人成日本视频| 亚洲经典在线|