Find Jobs
Hire Freelancers

Arrays, Strings, and Pointers

$30-5000 USD

I përfunduar
Postuar about 21 years ago

$30-5000 USD

Paguhet në dorëzim
Write a C program that breaks a code and decrypts a text message. Suppose we want to encrypt the 7 symbols A,B,C,D,E,F,and G. We map these symbols into the integers 0,1,2,3,4,5,and 6, respectively. The public key U is a positive integer less than 7. The offset F is a positive integer less than 7. To encrypt the symbol represented by integer i, we use this formula: (i * U + F)%7 To decrypt the message, we need to know the private key V. With V, we can use this formula to decrypt the letter i: ((7 + i - F)*V)%7 Private key V is the unique positive integer less than 7 for which U*V%7 = 1. If U=3, then V=5, since 3*5=15, and 15%7=[login to view URL] program should open file "[login to view URL]" and read from it two integers. The first integer is the public key U. The second integer is the offset F. It should break the code by finding the value of the private key V. V is an integer between 1 and 94 such that U*V % 95 = 1. It should open file "[login to view URL]" containing the encrypted message. The program should read a line of text from the file, decrypt the entire line, print the decrypted line to standard output, and repeat until the end of the file is reached. Your program must decyrpt the message line-by-line, rather than character-by-character. Your program should use functions where appropriate. For extra credit, your program should store the entire body of the message in a two-dimensional array of characters. After printing the decrypted message, your program should use the public key to encrypt the message again and print the encrypted message on the screen. The encrypted message your program computes will be identical to the encrypted message stored in file "[login to view URL]". However, you will not receive credit for simply echoing the contents of file "[login to view URL]". Your program must actually encrypt the plain text message ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. 4) Complete and executable source file (.c file) and project file (.mcp file). ## Platform Codewarrior Version 6.1
ID e Projektit: 2911666

Rreth projektit

11 propozime
Projekt në distancë
Aktive 21 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
I dhënë për:
Avatari i Përdoruesit
See private message.
$17 USD në 14 ditë
4,9 (18 përshtypje)
3,9
3,9
11 profesionistët e pavarur ofrojnë mesatarisht $47 USD oferta për këtë punë
Avatari i Përdoruesit
See private message.
$20,40 USD në 14 ditë
5,0 (125 përshtypje)
6,6
6,6
Avatari i Përdoruesit
See private message.
$17 USD në 14 ditë
4,9 (175 përshtypje)
5,9
5,9
Avatari i Përdoruesit
See private message.
$68 USD në 14 ditë
5,0 (53 përshtypje)
5,1
5,1
Avatari i Përdoruesit
See private message.
$28,05 USD në 14 ditë
4,9 (79 përshtypje)
4,7
4,7
Avatari i Përdoruesit
See private message.
$17 USD në 14 ditë
5,0 (19 përshtypje)
3,2
3,2
Avatari i Përdoruesit
See private message.
$25,50 USD në 14 ditë
4,5 (15 përshtypje)
2,7
2,7
Avatari i Përdoruesit
See private message.
$42,50 USD në 14 ditë
5,0 (8 përshtypje)
2,3
2,3
Avatari i Përdoruesit
See private message.
$42,50 USD në 14 ditë
5,0 (3 përshtypje)
0,6
0,6
Avatari i Përdoruesit
See private message.
$21,25 USD në 14 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
See private message.
$212,50 USD në 14 ditë
0,0 (0 përshtypje)
0,0
0,0

Rreth klientit

Flamuri i UNITED STATES
United States
0,0
0
Anëtar që nga shk 28, 2003

Verifikimi i klientit

Punë të tjera nga ky klient

Structures
$30-5000 USD
Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.