Assignment 4 COSC 2P89

Project four COSC 2P89 Code Due: Friday, November 19, 2021 at 12:00 pm on Sakai Half 1 (Synchronous CGI) On this half, you: • Don't have to make your webpage: • Fairly • Interactive • Responsive • should make: • Synchronous Calls a C program • A CSV textual content file as a database • Runs within the public_html folder within the sandcastle server beneath your account. Please do the next: Your job is to create a easy login net web page that calls a C program to validate the username and password entered within the kind with legitimate usernames and passwords recorded in an CSV textual content file (as your database). Your job is to: 1. When you have not already created your public_html listing within the sandcastle server then please accomplish that. 2. Login to your account utilizing ssh or putty three. Now cd into public_html four. Subsequent vi login.html (or use whichever editor you’d like), and create a easy kind with the following: Please Login then a that shows one textual content enter and one password enter. The textual content enter shows “Username:” and the password enter shows “Password:” (with out the quotes). Extra particularly, the phrase Username: is adopted by a textbox then a brand new line and the phrase Password: with a password enter field following. Beneath these two enter packing containers show a submit button. The submit button shows “Login” as a substitute of Submit. The shape’s motion is to name a program named checkpass.cgi utilizing the technique “put up”. 5. Now, create a CSV textual content file because the database referred to as customers.csv. The CSV file is formatted in the next manner: first phrase is the username adopted by a comma after which the password because the second phrase. Beneath is an instance: bob,12345 Yuki,abc123 Maria,jklmnop 6. This system checkpass.cgi will open the CSV file and seek for the existence of username and password (entered from the shape) with the legitimate usernames and passwords within the CSV file. If the username and password match, then the consumer sees “Your Password Matches” in any other case the consumer sees “Fallacious username or password”. Don’t neglect to alter the extension for this to .cgi within the cgi-bin folder. 7. Program ends. Half 2 (Asynchronous) Please do the next: Your job is to redo half 1 however this time use an asynchronous AJAX name to invoke a Python program. Your job is to: 1. vi (or use whichever editor you’d like) loginAsyc.html, and create a easy kind with the following: Please Login then a programmatic kind (however not a ) that shows one textual content enter and one password enter. The textual content enter shows “Username:” and the password enter shows “Password:” (with out the quotes). Extra particularly, the phrase Username: is adopted by a textbox then a brand new line and the phrase Password: with a password enter field following. Beneath these two enter packing containers show a submit tag. The submit button shows “Login” as a substitute of Submit. The async name invokes a program named checkpass.py utilizing the strategy “put up”. 2. Now, this system checkpass.py will open the CSV file from half 1 (customers.csv) and seek for the existence of username and password (entered from the shape) with the legitimate usernames and passwords within the CSV file. If the username and password match, then the consumer sees “Your Password Matches” in any other case the consumer sees “Fallacious username or password”. Don’t neglect to change the extension for this to .cgi within the cgi-bin folder. three. Program ends. Half three (Ceasar Cypher) This half is about password safety. In skilled web sites the passwords will not be saved in readable kind within the database. As an alternative they're encrypted. Create a python program referred to as caesar.py that may encrypt and decrypt a string utilizing command-line arguments. Particularly: Caesar -e abc123 5 will encrypt abc123 with the important thing 5 and print the consequence to the display screen. Caesar -d jklihj 7 will decrypt jklihi with the important thing 7 and print the consequence to the display screen. The algorithm is a Caesar cipher, a quite simple character shifting cipher (you possibly can look it up in case your are not aware of it). The checkpass.py program would wish to decrypt the password earlier than evaluating (due to this fact you will have so as to add to the python program to take action). To make this straightforward, assume the passwords within the CSV file are already encrypted. Your cgi program will solely have to decrypt the password within the CSV file and examine with the consumer’s inputted password. Use the caesar.py program you wrote that will help you. WHAT TO HAND IN • Make sure that the applications work in your public_html sandcastle listing • Submit a readme.html file along with your identify and an URL to your login.html and loginAsync.html file on sandcastle • ZIP login.html, loginAsync.html, checkpass.c, checkpass.py, customers.csv, caesar.py and readme.html and add that to Sakai. Be sure to coded this by hand. HOW IT WILL BE GRADED Whole: 55 factors PART 1: – Most factors 20 – 5 factors for login.html – 15 factors for checkpass.cgi o 2.5 CGI enter from the packet o 2.5 Printing the resultant net web page o 5.zero Password checking logic o 5.zero factors studying the csv textual content file database PART 2: – Most factors 20 – 5 factors for loginAsync.html – 15 factors for checkpass.py 2.5 CGI enter from the packet 2.5 Printing the resultant net web page 5.zero Password checking logic 5.zero factors studying the csv textual content file database PART three: – Most factors 15 5.zero caesar.py runs (each decrypt and encrypt) utilizing command line 5.zero appropriate encrypt/decrypt logic in caesar.py 5.zero loginAsync.html accurately employs caesar.py to verify passwords in opposition to decrypted database entries.
Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

We value our customers and so we ensure that what we do is 100% original..
With us you are guaranteed of quality work done by our qualified experts.Your information and everything that you do with us is kept completely confidential.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

The Product ordered is guaranteed to be original. Orders are checked by the most advanced anti-plagiarism software in the market to assure that the Product is 100% original. The Company has a zero tolerance policy for plagiarism.

Read more

Free-revision policy

The Free Revision policy is a courtesy service that the Company provides to help ensure Customer’s total satisfaction with the completed Order. To receive free revision the Company requires that the Customer provide the request within fourteen (14) days from the first completion date and within a period of thirty (30) days for dissertations.

Read more

Privacy policy

The Company is committed to protect the privacy of the Customer and it will never resell or share any of Customer’s personal information, including credit card data, with any third party. All the online transactions are processed through the secure and reliable online payment systems.

Read more

Fair-cooperation guarantee

By placing an order with us, you agree to the service we provide. We will endear to do all that it takes to deliver a comprehensive paper as per your requirements. We also count on your cooperation to ensure that we deliver on this mandate.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency

Guaranteed 5-30% off for all your orders with us. Try Now!

X