Placeholder

Python Assignments Caesar Cipher

$9.99

Description

These projects must be done in the latest version of IDLE:
Write a script that inputs a line of plaintext and a distance value and outputs an encrypted text using a Caesar cipher. The script should work for any printable characters.
Write a script that inputs a line of encrypted text and a distance value and outputs plaintext using a Caesar cipher. The script should work for any printable characters.
Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text.
SCREENSHOTS
SOLUTION
PAYMENT
The solution includes four python programs
Attachments [Move over files to preview content of those files]
Solution.zip (1.88 KB)
cipher.txt
DecryptFile.py
DecryptText.py
EncryptFile.py
EncryptText.py
plaintext.txt
Preview cipher.txt
AFFDSFSDGBCVBSDFSDFSDFBXBXB SFSDGXCVBZDSHDSWRRSF DFDH
xxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Preview DecryptFile.py
xxxxxx xxx
xxx xxxxxxx(xxxxxx, xxxxx):
xxxxxxxxx = ”
for each in cipher: p = (ord(each)-shift) % 126
if p < 32: p+=95 xxxxxxxxx += xxx(x) xxxxx ('xxxx xxxxx xxxx xxxxxxx xx: ' + xxxxxxxxx) xxxxxxxxxxxxx = "xxxxxxxxx.xxx" # xxx xxxxxxxxx xxxx xxxx xxxx (xxxxxxxxxxxxx, "x") xx xxxxxx: Preview DecryptText.py xxxxxx xxx xxx xxxxxxx(xxxxxx, xxxxx): xxxxxxxxx = '' for each in cipher: p = (ord(each)-shift) % 126 if p < 32: p+=95 xxxxxxxxx += xxx(x) xxxxx ('xxxx xxxxx xxxx xxxxxxx xx: ' + xxxxxxxxx) xxxxxx = xxxxx("xxxxx xxxxxxxxx xxxxxxx:") xxxxxxxx = xxx(xxxxx("xxxxx xxxxxxxx xxxxx: ")) Preview EncryptFile.py xxxxxx xxx xxx xxxxxxx(xxxxxxxxx, xxxxx): xxxxxx = '' for each in plaintext: c = (ord(each)+shift) % 126 if c < 32: c+=31 xxxxxx += xxx(x) xxxxx('xxxx xxxxxxxxx xxxxxxx xx: ' + xxxxxx) xxxxxxxxxxxxx = "xxxxxxxxx.xxx" # xxx xxxxxxxxx xxxx xxxx xxxx (xxxxxxxxxxxxx, "x") xx xxxxxx: Preview EncryptText.py xxxxxx xxx xxx xxxxxxx(xxxxxxxxx, xxxxx): xxxxxx = '' for each in plaintext: c = (ord(each)+shift) % 126 if c < 32: c+=31 xxxxxx += xxx(x) xxxxx('xxxx xxxxxxxxx xxxxxxx xx: ' + xxxxxx) xxxxxxxxx = xxxxx("xxxxx xxxxx xxxx: ") xxxxxxxx = xxx(xxxxx("xxxxx xxxxxxxx xxxxx: ")) Preview plaintext.txt AFFDSFSDGBCVBSDFSDFSDFBXBXB SFSDGXCVBZDSHDSWRRSF DFDH xxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Price: $19 Buy Now Checkout Added to cart Add to Cart Checkout Added to cart You May Also Like: Python Assignments Credit Plan and Series Numbers Python Assignments Triangle and Guessing Number

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.