Commit graph

12 commits

Author SHA1 Message Date
Nich
2df463fc79 Issues with decrypting project
Pappy is no longer reading the salt correctly, and now fails out
when raising an exception. Need to fix exception handling.
2016-04-11 18:36:47 -04:00
Nich
772e7ee507 Fixed error when user fails to enter correct password
Pappy would raise exceptions and continued project in clear-text
when the user failed to enter the correct decryption password.

Added a boolean status variable to config `crypt_success` that
gets set to true when project decrypts correctly, otherwise it
is set to false.
2016-04-05 19:04:38 -04:00
Nich
f7d8df69cc Pep8 corrections 2016-04-05 18:30:49 -04:00
Nich
f5c53add9c Minor typography fixes 2016-04-05 18:10:04 -04:00
Onics
5ceedddd1a Fixed minor bugs in decrypting project
Project now decrypts properly and fails out loudly when incorrect
password is supplied. Must supply project name via command line now.
2016-04-04 19:33:21 -04:00
Nich
ff8595e8f4 Minor changes, decrypt project within PappySession
Changed to decrypting project to within the PappySession object,
instead of in main. More maintainable, and makes more sense.
2016-03-28 21:51:56 +00:00
Nich
e7d1f75435 Added exception handling for failure to decrypt
When entering the wrong password, fernet throws an 'InvalidToken'
exception. This is now handled, but does not fully shutdown pappy.
Working on asking for password multiple times, then shutting down
completely after reasonable amount of total tries, e.g. 3.
2016-03-28 21:24:59 +00:00
Nich
bf914e6f86 Worked out bugs for crypto mode, it works now!
Crypto mode for pappy now works. Still need to work out the kinks
for not supplying a project file to `pappy -c`, but when supplied
encryption and decryption work.
2016-03-28 21:12:19 +00:00
Nich
a3cb5f13ed Fixed bugs with crypto.py, need to work on cleanup
Project is now properly encrypting the archive,
and now I just need to ensure proper decryption
is happening. Also need to work on cleaning up
clear text versions of the crypt project files.
Need to write tests for flushing out edge cases.
2016-03-28 06:04:27 +00:00
onizenso
c32201fd05 Tested and fixed file copying from Crypto.decrypt_project
In the function for grabbing project files (`Config.get_project_files`)
I was overcomplicating getting the current working directory.
Simplified the process and removed the bug!
2016-03-25 20:28:22 +00:00
onizenso
b56bb83558 Debugging Crypto config and temp directory creation
Attempting to get stub file creation and copying working. Fixed
syntax errors, and now attempting to get password reading working
in the test environment.
2016-03-25 19:43:43 +00:00
onizenso
5be69b205d Drastically restructured the compression and crypto features
Converted the crypto and compression plugins to core features, and
added the utility variables and functions to the Config class in
``config.py``. Added helper functions in PappySession class in
``pappy.py`` to enable the user to pass in an encrypted project archive.
Next moving to testing and debugging!
2016-03-24 20:48:40 +00:00