Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IT 430 Assignment 4 sol is required
#1
Instructions
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:

o Assignment is submitted after due date.
o Submitted assignment does not open or file is corrupt or in invalid format.
o Complete assignment or part of assignment is copied (From internet or to/from students).

Objective
The objective of this assignment is to understand the concept of encryption (encoding and decoding).

Assignment Submission Instructions
• Assignment should be submitted in only html format.
• On submitting any other format. Zero mark will be awarded.
• You should work only on the given html file.




Assignment

The task is very simple; you have to work on two functions Encrypt and Decrypt. The encrypt function will encrypt the user input string with the help of encryption key. The decrypt function will decrypt the user input string with the help of encryption key. The output will






Hints:

Encoding:
Read each character of user input and find its ASCII code using function charCodeAt. Add the key value into ASCII code of each character and covert new ASCII code to character by using function fromCharCode. Display all characters into Encoded Output box.

For example, you entered a character ‘X’, which has ASCII value 130. Add key value in 130, for example, 130+16=146. Then convert 146 to respective Character.

Decoding:
Read each character of user input and find its ASCII code using function charCodeAt. Subtract the key value from ASCII code of each character and covert new ASCII code to character by using function fromCharCode. Display all characters into Original String box.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need ACC501 - Business Finance Assignment No 2 Solution. Umar Abbas 2 4,251 02-07-2014, 08:23 PM
Last Post: Umar Abbas
  sta301 assignment 4 27 jun bc110200090 6 3,576 01-26-2013, 02:05 AM
Last Post: Vuhelper
  cs506 2nd assignment millee 0 2,656 12-04-2012, 11:30 PM
Last Post: millee
  cs506 2nd Assignment Neelam Ahmad 5 3,125 12-04-2012, 11:24 PM
Last Post: Vuhelper
  CS 504 Assignment 2 need help ommmi 24 11,415 11-27-2012, 04:59 AM
Last Post: Xpert
  Mcs cs402 1st assignment chahat4all 2 3,766 11-01-2012, 11:11 PM
Last Post: chahat4all
  eng201 assignment 4 due date 4/7/2012 bc110200090 6 2,615 07-03-2012, 03:51 PM
Last Post: bc110200090
  RequiRed syllabus for LLB of BZU murshad.raza 2 4,986 06-26-2012, 11:02 PM
Last Post: Vuhelper
  need CS304 4th assignment shazma 0 2,053 06-26-2012, 12:48 PM
Last Post: shazma
  sta301 assignment 4 solution vudecent 0 2,396 06-25-2012, 01:51 AM
Last Post: vudecent

Forum Jump:


Users browsing this thread: 1 Guest(s)