Question: In this challenge, you've been given a csv file (UserInfo.csv) filled with rows of consumer financial information. Among the contents included are emails, passwords, credit

In this challenge, you've been given a csv file (UserInfo.csv) filled with rows of consumer financial information. Among the contents included are emails, passwords, credit card numbers, mailing addresses, phone numbers, and bank balances. Your job is to create a Python script that can iteratively loop through the contents and hash the confidential information (password and credit card number) from prying eyes. Your Python script should:

Open the contents of UserInfo.csv using the Python CSV Library.

Utilize the SHA256 hash strategy to mask password and credit card number.

Store the hashed version of the data into a new file titled UserInfo_Hashed.csv.

Your final submission should come in the form of:

Your complete Python script

The original csv and the hashed csv (two separate files)

See the following screenshot for an excerpt of how your final csv should appear.

how you sudo code that in python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!