shivakumar - Notepoints for Demonistration

docx

School

Illinois Institute Of Technology *

*We aren’t endorsed by this school

Course

509

Subject

Information Systems

Date

Oct 30, 2023

Type

docx

Pages

2

Uploaded by ChiefKnowledgeOyster25

Report
1. The first function of my script is to show a user's details. This is done by querying the database for the user's username and then returning the user's details from the database. 2. The second function of my script is to show all users. This is done by querying the database for all users and then returning the user's details from the database. 3. The third function of my script is show only particular user by the username. This is done by querying the database for the user's username and then displaying the particular user's details in the database. 4. The fourth function of my script is creating a user. This is done by inserting a new row into the user data table in the database, creating a new entry for the user. The data that is inserted into the table is the user's username, hashed password, jobtitle, firstname, and lastname. The username is set to be unique so that there is no duplicate usernames in the database. The password is hashed using a one-way encryption algorithm to ensure that it is secure. 5. The fifth function of my script is to delete a user. This is done by querying the database for the user's username and then deleting the user's entry from the database. 6. The sixth function of my script is to update the user's password. This is done by first retrieving the user's encrypted password from the database. The encrypted password is then decrypted using the same algorithm that was used to encrypt it. The decrypted password is then compared to the user's new password, and if they are different, the new password is encrypted and stored in the database. The view is updated by querying the database for any changes in the user data table and returning the changed data to the view. The password is encrypted and decrypted using a one-way encryption algorithm. This ensures that the password is secure and cannot be easily guessed. For this we used the hashlib library The connection process involves establishing a connection between the script and the database. This is done by using a cursor to execute the SQL queries. Error handling is used to ensure that any errors that occur during the connection process are handled appropriately.
No custom functions or procedures were used, however a unique constraint is set on the user's username to ensure that it is unique. This is done by setting the username column to be a primary key. This ensures that there are no duplicate usernames in the database.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: 7. What type of inheritance pattern is depicted in the pedigree below? Explain your reasoning.
Q: Protex Inc. acquired land, buildings, and equipment from a bankrupt company, for a lump-sum price of…
Q: A company’s sales on account for the coming months are as follows:  May $120,000  June $126,000…
Q: Exercise 1: Word Separator Write a program that accepts as input a sentence in which all of the…
Q: 1. A soil sample is collected at 20 °C and taken to the laboratory. The sample is in a stainless…
Q: Provide the correct IUPAC name for the skeletal (line-bond) structure shown here.
Q: Elevation (meters) 2. Given the figure below, in which dashed lines indicate equipotential lines and…
Q: In the presence of excess OH, the Zn2+ (aq) ion forms a hydroxide complex ion, Zn(OH)42-. Calculate…
Q: Question 2 of 22 Provide the correct IUPAC name for the compound shown here. HO
Q: A puck is moving on an air hockey table. Relative to an x, y coordinate system at time t = 0s, the x…
Q: Under the influence of its drive force, a snowmobile is moving at a constant velocity along a…
Q: 2. Use spherical coordinates to evaluate fff (9-x2 - y2) dV where E is the solid hemisphere x² + y²…
Q: Often sales of a new product grow rapidly at first and then level off with time. This is the case…
Q: -1 m 5. Review: Let A = p 4 30 and B = 1 0 3 Compute AxB
Q: A company produces mood music, and wants to study the music and whther it substantially helps…
Q: 14) The half-life of carbon-324 is 700 years. I have 400 grams of carbon-324 right now. How much…
Q: Which answer is NOT true about El Nino?     During most El Nino events, fisheries off the coast of…
Q: The ?spKsp of cobalt(II) carbonate, CoCO3, is 1.0×10−101.0×10−10. Calculate the molar solubility,…
Q: The probability that an employee gets the highest rating at their annual review is 40% The…
Q: The following are the returns ($) for two stocks. Which stock would you choose and why? B Expected…
Q: Bindley Corporation has a one-year contract to supply motors for all washing machines produced by…
Q: A chemical company makes two brands of antifreeze. The first brand is 60% pure antifreeze, and the…