Commit 0b7223f0 authored by lucas.tieman's avatar lucas.tieman
Browse files

modifications to and adding

parent 531c4a33
MAPP Encryption Tool
Any Questions Please Reach Out To Member Data Support!
Basic Setup Instructions:
* This Tool Has Been Tested using Python 3.7 and 3.8 and Python 2.7 on MacOS and Python 3.8 on Windows
* Install Requirements using pip like so "pip install -r requirements.txt"
* Modify the .env file in this folder with the Encryption Secret Provided By MAPP Support and the File Naming Convention agreed on with them as well
* Place the file you want to encrypt in the "in" folder in this project
* Use the Command "python encrypt"
* Your Encrypted File is now in the Out Folder
Check Encryption:
* Place your Successfully Encrypted File In the 'in' folder in this project
* Use the command "python decrypt"
The file also accepts optional relative and absolute paths to tell the script where to look for the file to encrypt
For instance the command:
python encrypt && python decrypt out in
Will encrypt the file in the in folder, place it in the out folder, and then the second command will take the encrypted file from the out folder and decrypt it into the in folder. Doing quite a bit, but apparently doing nothing.
Additionally, in this project, there are two methods that can be used in existing python projects to encrypt and decrypt files.
The encrypt_file and decrypt_file methods requires a path to the file and the encryption key to be handed to it. They also have an optional parameter to provide a path for the new file. If one is not given, it will just add a '1' to the end of the current file name. It will not overwrite, as it needs to read the existing file as it goes through its process.
\ No newline at end of file
......@@ -77,6 +77,7 @@ def encrypt(file_path,new_path=None):
elif l == 0:
raise ValueError('File Does Not Match A File Pattern')
os.remove("{}/{}".format(file_path, file))
print('Encryption Failed')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment