Question: ( C + + please ) Program: Caesar Encryption ( from geek - to - geek site ) The Caesar Cipher technique is one of
C please
Program: Caesar Encryption
from geektogeek site The Caesar Cipher technique is one of the earliest and simplest methods of encryption technique. Its simply a type of substitution cipher, ie each letter of a given text is replaced by a letter with a fixed number of positions down the alphabet. For example, with a shift of A would be replaced by B B would become C and so on The method is apparently named after Julius Caesar, who apparently used it to communicate with his officials.
To encrypt and decrypt a given text we need an integer value, known as a shift which indicates the number of positions each letter of the text has been moved down.
You are to write a program that will serve as a tool to encrypt or decrypt a message. An overview of the program is that you need to:
Offer the user the ability to encrypt or decrypt a message The user should select one or the other.
Ask for the file containing the message to be encrypted or decrypted
Ask for the shift number for the decryptionencryption key in the algorithm
Write out the result of your algorithm to a nd file This can be named by the customer or can be named resulttxt
REQUIREMENTS:
Must use:
o File stream
o Array
o Functions
Must be able to encrypt the entire alphabet az and numbers The result can be a message of only lowercase letters.
Other characters are just copied, as is to the result text.
Note: Cannot use
Mathematical equation for Caesar substitution.
Global Variables with the exception of
o function declarations
enum datatypes if you decide to use themProgram: Caesar Encryption
from geektogeek site The Caesar Cipher technique is one of the earliest and simplest methods of encryption technique. It's simply a type of substitution cipher, ie each letter of a given text is replaced by a letter with a fixed number of positions down the alphabet. For example, with a shift of A would be replaced by B B would become C and so on The method is apparently named after Julius Caesar, who apparently used it to communicate with his officials.
To encrypt and decrypt a given text we need an integer value, known as a shift which indicates the number of positions each letter of the text has been moved down.
You are to write a program that will serve as a tool to encrypt or decrypt a message. An overview of the program is that you need to:
Offer the user the ability to encrypt or decrypt a message The user should select one or the other.
Ask for the file containing the message to be encrypted or decrypted
Ask for the shift number for the decryptionencryption key in the algorithm
Write out the result of your algorithm to a file This can be named by the customer or can be named 'result.txt'Program: Caesar Encryption
from geektogeek site The Caesar Cipher technique is one of the earliest and
simplest methods of encryption technique. It's simply a type of substitution cipher, ie
each letter of a given text is replaced by a letter with a fixed number of positions down
the alphabet. For example, with a shift of A would be replaced by B B would become
and so on The method is apparently named after Julius Caesar, who apparently
used it to communicate with his officials.
To encrypt and decrypt a given text we need an integer value, known as a shift which
indicates the number of positions each letter of the text has been moved down.
You are to write a program that will serve as a tool to encrypt or decrypt a message. An
overview of the program is that you need to:
Offer the user the ability to encrypt or decrypt a message The user should select
one or the other.
Ask for the file containing the message to be encrypted or decrypted
Ask for the shift number for the decryptionencryption key in the algorithm
Write out the result of your algorithm to a file This can be named by the customer
or can be named 'result.txt
REQUIREMENTS:
Must use:
o File stream
o Array
o Functions
Must be able to encrypt the entire alphabet az and numbers The result can
be a message of only lowercase letters.
Other characters are just copied, as is to the result text.
Note: Cannot use
Mathematical equation for Caesar substitution.
Global Variables with the exception of
o function declarations
o enum datatypes if you decide to use them
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
