Computers and Technology
Computers and Technology, 02.04.2020 17:19, kaylaw332

Write a program in Python or C++ that has TWO functions:

Function One is called: _encrypt
Function Two is called: _decrypt
Function one takes plain text, and assesses the indexed value of each letter in the string. For example, a=1, b=2. It then adds three to the indexed value, and produces encrypted text, based off of the plain text.
Function two reverses this.
Here is sample output:
_encrypt('how do you do')
Unsecured: howdoyoudo
Secured: lsahscsyhs
_decrypt('lsahscsyhs')
Unsecured: lsahscsyhs
Secured: howdoyoudo

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:50, bessieyounger1211
Click on this link toopens a new window. bring up a flowchart in a new browser window. based on this flowchart, would a d-link 3347 gateway with an xbox 360 multiplayer problem be in scope or out of scope
Answers: 2
image
Computers and Technology, 22.06.2019 21:30, Nathaliasmiles
The graph shows median weekly earnings for full-time workers according to education level. which can you not conclude?
Answers: 2
image
Computers and Technology, 22.06.2019 22:00, noeminm105
Consider the following declarations (1, 2, 3, 5, 7)class bagtype{public: void set(string, double, double, double, double); void print() const; string getstyle() const; double getprice() const; void get(double, double, double, double); bagtype(); bagtype(string, double, double, double, double); private: string style: double l; double w; double h; double price; }; a.) write the definition of the number function set so that private members are set according to the parametersb.) write the definition of the member function print that prints the values of the data membersc.) write the definition of the default constructor of the class bagtype so that the private member variables are initialized to "", 0.0, 0.0, 0.0, 0.0, respectively d.) write a c++ statement that prints the value of the object newbag. e.) write a c++ statement that declares the object tempbag of type bagtype, and initialize the member variables of tempbag to "backpack", 15, 8, 20 and 49.99, respectively
Answers: 3
image
Computers and Technology, 22.06.2019 22:50, cheyennecarrillo14
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
Do you know the correct answer?
Write a program in Python or C++ that has TWO functions:

Function One is called: _encryp...

Questions in other subjects:

Konu
Spanish, 01.02.2021 17:30
Konu
Mathematics, 01.02.2021 17:30
Konu
Mathematics, 01.02.2021 17:30