Question: A simple ROT encryption can be used to obfuscate a string of characters by adding a number to each character, called the key. Here is
A simple ROT encryption can be used to obfuscate a string of characters by adding a number to each
character, called the key. Here is a function definition for the function encryptRQT The
function uses pass by reference, and forces the encrypted string to remain in the ASCII printable
character range.
Preconditions: string s int key
Postconditions: encrypted s
void encryptROT string& s int key
for int key;
key & ;
;
the code i was provided earlier for this did not work. I code in VS please provide a working code.
code example
MODEL FLAT
INCLUDE ioh ; header file for inputoutput
STACK
DA
valueA DWORD
valueB DWORD
valueC DWORD
prompt BYTE "Value of a
prompt BYTE "Value of bnot zero
prompt BYTE "Value of c
string BYTE DUP
result BYTE DUP
resultLbl BYTE "Expression vaCODE
MainProc PROC
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
