Skip to content

Commit

Permalink
Fix/output (#14)
Browse files Browse the repository at this point in the history
* Change crypt output from binary to ascii armored Better for git

* bump version
  • Loading branch information
Cellebyte authored Apr 28, 2018
1 parent fb6a41e commit 15a0cc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion multivault/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'''
This is the ansible-multivault package
'''
__version__ = "0.6.0.0"
__version__ = "0.6.0.1"
2 changes: 1 addition & 1 deletion multivault/base/crypter.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _merged_encryption(PGPmessage, recipients, output_file):
for recipient in recipients[1:]:
enc_msg = recipient.encrypt(enc_msg, cipher=cipher, sessionkey=sessionkey)
del sessionkey
output_file.write(bytes(enc_msg))
output_file.write(bytes(str(enc_msg).encode()))
except Exception as e:
print("Encryption error:\n\t{}".format(e))
exit(1)
Expand Down

0 comments on commit 15a0cc9

Please sign in to comment.