代写homework | 密码学代写 | python – ECE 404 Homework

ECE 404 Homework

代写homework | 密码学代写 | python – 这个项目是密码学相关的,利用python编程的题目

homework代写 代写homework hw代做

SHA-

To better understand the Secure Hash Algoritm (SHA), use the BitVector module to create an implementation of SHA-512.

Program Requirements

Your program should have the following call syntax :

sha512.py <name of input file to hash (input.txt)> <name of output file containing hash (output.txt)>

An explanation of this syntax is as follows:

  • Read the text (in ASCII format) from the input file specified by the first command-line argument. Do not strip or remove any characters (e.g. newlines) when reading the input file.
  • The hash is written inhexstring formatto the file specified by the second argument.

You can include the round constantsKiin the program file.

You can check the correctness of your work by comparing the hash values produced by your code with those produced by Pythons hashlib library: https://docs.python.org/3/library/hashlib.html

Submission Instructions

  • Make sure that the program requirements and submission instructions are followed.Failure to follow these instructions may result in loss of points!.
  • You must turn in a single zip file on Brightspace with the following naming convention: HW07.zip. Your submission must include: – A PDF titledhw07.pdfcontaining: a brief explanation of your code. The input and the output of the sha12.py. – The filesha512.pycontaining your code for your SHA-512 implementation.
  • In your program file, include a header as described on the ECE 404 homework Page.
  • Please comment your code.