-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from stephane-rouleau/encryption
Add encryption support for OOXML
- Loading branch information
Showing
8 changed files
with
1,034 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
class FileFormatError(Exception): | ||
"""Raised when the format of given file is unsupported or unrecognized. | ||
""" | ||
"""Raised when the format of given file is unsupported or unrecognized.""" | ||
|
||
pass | ||
|
||
|
||
class ParseError(Exception): | ||
"""Raised when the file cannot be parsed correctly. | ||
""" | ||
"""Raised when the file cannot be parsed correctly.""" | ||
|
||
pass | ||
|
||
|
||
class DecryptionError(Exception): | ||
"""Raised when the file cannot be decrypted. | ||
""" | ||
"""Raised when the file cannot be decrypted.""" | ||
|
||
pass | ||
|
||
|
||
class EncryptionError(Exception): | ||
"""Raised when the file cannot be encrypted.""" | ||
|
||
pass | ||
|
||
|
||
class InvalidKeyError(DecryptionError): | ||
"""Raised when the given password or key is incorrect or cannot be verified. | ||
""" | ||
"""Raised when the given password or key is incorrect or cannot be verified.""" | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.