Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

create a JavaScript function that accepts three parameters, and returns the Caesar Cipher encrypted text: Function name: CaesarEncrypt(clearText, shiftNum, shiftLeft) Parameters: clearText : the unencrypted

create a JavaScript function that accepts three parameters, and returns the Caesar Cipher encrypted text:

Function name: CaesarEncrypt(clearText, shiftNum, shiftLeft)

Parameters:

  • clearText: the unencrypted string
  • shiftNum: the integer number of positions to shift
  • shiftLeft: the Boolean value of whether the shifting is left (true), or right (false)

Return: Encrypted text using the parameter values.

You will ONLY encrypt (i.e., shift) uppercase or lowercase alphabetic characters. All other characters are returned unshifted.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions

Question

Do they ever feel that their personal life is being shortchanged?

Answered: 1 week ago

Question

10:16 AM Sun Jan 29 Answered: 1 week ago

Answered: 1 week ago