Generate a hashed password using python

Assignment Help Python Programming
Reference no: EM133440886

Overview: In this week, you have studied additional Python language syntax including Arrays and Strings. In particular, you used the numpy, regular expressions, and Panda libraries to help manipulate and store data. The Lab for this week demonstrates your knowledge of this additional Python functionality. Be sure to use the examples in the textbook reading along with the associate libraries, functions and processes when completing the assignments for this week.

Python Numpy and Pandas Application Code

Python Applications for this lab: (total 100 points):

This lab consists of three parts.

1. allows a user to enter and validate their phone number and zipcode+4. Then the user will enter values of two, 3x3 matrices and then select from options including, addition, subtraction, matrix multiplication, and element by element multiplication. You should use numpy.matmul() for matrix multiplication (e.g. np.matmul(a, b) ). The program should compute the appropriate results and return the results, the transpose of the results, the mean of the rows for the results, and the mean of the columns for the results.

When entering data, the application should use regular expressions and/or Pandas functionality to check the format of the phone number and zipcode. You should check that each value is numeric for the matrices. The user interface should continue to run until the user indicates they are ready to exit.
A user interface might look similar to this:
***************** Welcome to the Python Matrix Application*********** Do you want to play the Matrix Game?
Enter Y for Yes or N for No:
Y
Enter your phone number (XXX-XXX-XXXX:
555-555-55
Your phone number is not in correct format. Please renter: 555-555-5555
Enter your zip code+4 (XXXXX-XXXX): 21022-3213

Enter your first 3x3 matrix:
1 2 4
4 2 1
3 8 9
Your first 3x3 matrix is:
1 2 4
4 2 1
3 8 9
Enter your second 3x3 matrix:
3 2 1
7 2 5
5 2 1
Your first 3x3 matrix is:
3 2 1
7 2 5
5 2 1
Select a Matrix Operation from the list below:
a. Addition
b. Subtraction
c. Matrix Multiplication
d. Element by element multiplication a
You selected Addition. The results are: 4 4 5
11 4 6
8 10 10
The Transpose is:
4 11 8
4 4 10
5 6 10
The row and column mean values of the results are: Row: 4.33, 7, 9.33
Column: 7.66, 6, 7

Do you want to play the Matrix Game? Enter Y for Yes or N for No:
N
*********** Thanks for playing Python Numpy ***************

If an inappropriate entry is detected, the program should prompt for a correct value and continue to do so until a correct value is entered.
Hints:
1. Use numpy, pandas and regular expressions as appropriate.
2. Create and use functions as often as possible
3. Both integers and float values are acceptable
4. Use comments to document your code
5. Test with many combinations.
6. Use pylint to verify the code style - the goal is a 10!


2. Document your testing results using your programming environment. You should also include and discuss your pylint results for the application. The test document should include a test table that includes the input values, the expected results and the actual results. A screen capture should be included that shows the actual test results of running each test case found in the test table. Be sure to include multiple test cases to provide full coverage for all code and for each function you develop and test.

3. Password crackers can easily be written using Python code. You can also generate a hashed password using Python with a variety of hash algorithms. For this exercise, you will create use Python code to generate ten (10) passwords with different hashing algorithms and then use a popular online password cracking website to see if the passwords can be cracked.
For example, the following Python code can be used to hash a password input using MD-5, SHA-256 and SHA-512 algorithms.
import hashlib
# input a message to encode print('Enter a message to encode:') message = input()
# encode it to bytes using UTF-8 encoding message = message.encode()
# hash with MD5 (very weak) print(hashlib.md5(message).hexdigest())

# Lets try a stronger SHA-2 family print(hashlib.sha256(message).hexdigest()) print(hashlib.sha512(message).hexdigest())

Attachment:- Python language.rar

Reference no: EM133440886

Questions Cloud

Analyse systematic approaches that assess and support : Analyse systematic approaches that assess and support individuals and their families when care becomes palliative, including care of people who are dying
Provide appropriate portion sizes and healthy choices : Develop a 1-day meal plan based on the preferences and restrictions of that culture except for Indian culture. Please provide appropriate portion sizes
Kate contracts an infection in cut to her right arm : At the hospital Kate contracts an infection in a cut to her right arm. The doctor on duty time to heal' following a trauma.
Increasing reliance on paramount welfare principle : The limitation of parental rights and increasing reliance on the paramount welfare principle is not in the best interest of the child. Discuss
Generate a hashed password using python : generate a hashed password using Python with a variety of hash algorithms. For this exercise, you will create use Python code
Responsible for enforcing these frameworks : What federal agencies are responsible for enforcing these frameworks (Anti-Kickback Statute and Physician Self-Referral Law (Stark)?
What was the total number of participants in this study : what was the total number of participants in this study, and do you think it was an appropriate size given the type of study?
How is the effectiveness of the policy evaluated : Consider a policy at your current or former clinical practice setting. The policy should be one that affects patient care quality and/or safety.
Describe special issues related to sexual concerns within : Describe special issues related to sexual concerns within the gay, lesbian, bisexual, and transgender population.

Reviews

len3440886

6/8/2023 10:14:49 PM

pycharm Submission requirements for this project include 2 files. (Zipping them into one file is acceptable and encouraged): . Python Numpy and Pandas Application Code . Word or PDF file containing your test and pylint results along with the Password cracking activity results

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd