diff options
author | Victor Shyba <victor1984@riseup.net> | 2016-11-30 00:07:24 -0300 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2016-11-30 01:55:33 -0300 |
commit | efb37c37bda119d3f73cc4d79f3b663585219c23 (patch) | |
tree | 4cfa559cd7875635ac899e1023b89ce0e933b407 /common/pkg/__init__.py | |
parent | 388e2b2916e49b0992ff7ffbf3fe4e212386b7b0 (diff) |
[refactor] improve blob signature magic usage
Our magic value wasn't being used and were represented as a string.
Refactored it to a constant, increased it's size to 2 bytes and optimzed
is_symmetrically_encrypted to look for the magic and symmetrically
encrypted flag under base64 encoding. Most file types will use this
feature to help identifying themselves, so it got refactored to serve
the purpose it was created.
Diffstat (limited to 'common/pkg/__init__.py')
0 files changed, 0 insertions, 0 deletions