logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Creek BoyleTechnical writing
(5/5)

668 Answers

Hire Me
expert
Myra HaydenOthers
(5/5)

599 Answers

Hire Me
expert
Michele PerezPhilosophy
(4/5)

631 Answers

Hire Me
expert
Mehar KhanNursing
(5/5)

843 Answers

Hire Me
R Programming
(5/5)

Implement a function which converts an input string to a set of blocks for cryptographic computation.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Assignment 2

Problems - String conversion:

Implement a function which converts an input string to a set of blocks for cryptographic computation. Specifically, the function should take an input a string and a block size and output a list (or an array) of converted string

Pre/post conditions for the function is as follows:

⚫encode (PN)

- Pre-condition: The function takes a string P, e.g, Phello world' and a block size N. e.g., N-8 (8 bit).

- Intermediate process: It first convert the string into ASCII codes,

e.g., P-104 101 108 108 111 32 119 111 114 108 100,

then split it by the other input N

-Post-condition: It outputs a list of number blocks, e.g.. PL-[104, 101, 108, 108, 111,

32, 119, 111, 114, 108, 100].

⚫ decade (PLN)

. It recovers the original string

Since 8-bit can express 0-255, the function does not need to split the values. It just converts each character and puts into a list. However, if N is greater than 8, you should find a rule to avoid information lost.

The implementation must include Good test codes to demonstrate the correctness of your program.

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme