From d656f671b3784575ba4c5bf2a30478c98198a95c Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 16 Nov 2016 22:16:35 -0300 Subject: [pkg] add six and cryptography Those are already present, but we are using the ones coming from our dependencies. Explicit is better than implicit. --- client/pkg/requirements.pip | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/pkg') diff --git a/client/pkg/requirements.pip b/client/pkg/requirements.pip index 2ae844e1..a18fe124 100644 --- a/client/pkg/requirements.pip +++ b/client/pkg/requirements.pip @@ -2,3 +2,5 @@ pysqlcipher>2.6.3 scrypt zope.proxy twisted +six +cryptography -- cgit v1.2.3 From 694e5670da53e923cf809948e400cd546154162b Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 30 Nov 2016 00:07:24 -0300 Subject: [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. --- client/pkg/requirements.pip | 1 - 1 file changed, 1 deletion(-) (limited to 'client/pkg') diff --git a/client/pkg/requirements.pip b/client/pkg/requirements.pip index a18fe124..24b168b4 100644 --- a/client/pkg/requirements.pip +++ b/client/pkg/requirements.pip @@ -2,5 +2,4 @@ pysqlcipher>2.6.3 scrypt zope.proxy twisted -six cryptography -- cgit v1.2.3