Write a program that encrypts and decrypts the user input


Problem: Python Programming

Write a program that encrypts and decrypts the user input. Note - Your input should be only lowercase characters with no spaces. Your program should have a secret distance given by the user that will be used for encryption/decryption. Each character of the user's input should be offset by the distance value given by the user For Encryption: Take the string and reverse the string. Encrypt the reverse string with each character replaced with distance value (x) given by the user. For Decryption: Take the string and reverse the string. Decrypt the reverse string with each character replaced with distance value (x) given by the user.

Encryption process - udc -> xgf (encrypted) The program should ask the user for input to encrypt, and then display the resulting encrypted output. Next your program should ask the user for input to decrypt, and then display the resulting decrypted output. Enter phrase to Encrypt (lowercase, no spaces): cdu Enter distance value: 3 Result: xgf Enter phrase to Decrypt (lowercase, no spaces): xgf Enter distance value: 3 Result: cdu

The response must include a reference list. One-inch margins, double-space, Using Times New Roman 12 pnt font and APA style of writing and citations.

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Write a program that encrypts and decrypts the user input
Reference No:- TGS03103544

Expected delivery within 24 Hours