student student Interview Question for Students Students
- 0of 0 votes
How to write an XOR cipher program using the C programming language.- pastorbt November 08, 2012 in GUYANA
Program must accept as input from the user a value between 0 and 255 to be used as the secret key, the name of the input file and the name of the output file. No line in the input file should contain more than 4096 characters.
After the user would have provided their secret key, your program should read and perform an XOR cipher on the contents of the input file and write the result to the output file.
If the input file has already been encrypted and the identical secret key that was used to perform the initial encryption is provided, then the contents of the output file should be deciphered into its original plain text.
1, Algorithm and flow chart
2, Source code.
Anyone with a clue to this task?
| Report Duplicate | Flag | PURGE
Student student Student student C
Open Chat in New Window