Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please just write this function using c++ (don't use iterator ) plz read carefully before solving Encryption Algorithm Step 1: In this step the password
please just write this function using c++ (don't use iterator ) plz read carefully before solving
Encryption Algorithm Step 1: In this step the password characters will be inserted into list object to be ready for the coming encryption stages. (objects to use only list) Step 2: In this step, the first and last characters of the password (in the list) be reversed. (e.g Hello oellH) (objects to use only list) Step 3: In this step, the ASCII value of the characters will be changed and the new characters (after changing the ASCII) will be in original order in the list. The new ASCII value for each character will be calculated by adding to the current ASCII value the least significant digit from the ASCII of the next character. (e.g. After step 2, the password is: cells with ASCII values: o: 111, e: 101, 1: 108, 1: 108, H: 72 The new ASCII values will be: p: 111+1, m: 101+8, t: 108+8, n: 108+2, H: 72 The password will be : pmtnh Note: The ASCII for the last character will not be changed because there is no character next to the last one. (objects to use list and stack OR list and queue OR both) give explanation for your choice. Step 4: Finally, in this step, the characters in even positions will be reversed and you keep the characters in the odd positions in their original order. (e.g. After step 2, the password is : pmtnH so after applying step 4 the password will be :Hmtnp (objects to use list and stack OR list and queue OR both) give explanation for your choice. encryptPassword(string): // (12 pt) this function receives the original password and return it after encryption. The encryption procedure is described below. id in the values of all TisValid ASSWONISMO
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started