-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencrypting.py
More file actions
19 lines (16 loc) · 1.1 KB
/
encrypting.py
File metadata and controls
19 lines (16 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
######################################################################
# Author: Elaheh Jamali & Emely Alfaro Zavala
# Username: Jamalie & Alfarozavalae
#
# Assignment: Final Project
#
# Purpose: Our program will receive a ciphered message with different characters and will extract the the 12-digit
# codes found and check for a barcode, afterwards, using the urllib our program will access the web showing the item
# online.
####################################################################################
# Acknowledgements: Dr. Heggen & Professor Lovell
##################################################################################
import Class_Caesar_cipher as cipher # importing the ceasar_cipher class with the name cipher
encryption = cipher.CeasarCipher("messagetext.txt", 7, "encrypt") # setting up the encryption
exporting = encryption.encrypt() # decrypting the file
encryption.export_file(exporting, "C:\\Users\\alfarozavalae\\Google Drive\\CSC226P01\\message_to_receive.txt") # naming the new file that has been decrypted