diff options
author | Tomás Touceda <chiiph@leap.se> | 2014-02-20 17:19:53 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2014-02-20 17:19:53 -0300 |
commit | a25e73b402d73eea03a7bf34c863a98577c78ace (patch) | |
tree | 268a86e5a668e604bfa8907a8d0f4a7025819238 /src/leap/mail/walk.py | |
parent | 66c5602b77547ec24674f5e40c1d244f28ff5a49 (diff) | |
parent | b2d97c9faef6037a065e2903afe5b0ab2624917e (diff) |
Merge remote-tracking branch 'refs/remotes/kali/feature/parse-perf' into develop
Diffstat (limited to 'src/leap/mail/walk.py')
-rw-r--r-- | src/leap/mail/walk.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/mail/walk.py b/src/leap/mail/walk.py index 49f2c22..f747377 100644 --- a/src/leap/mail/walk.py +++ b/src/leap/mail/walk.py @@ -17,17 +17,18 @@ """ Utilities for walking along a message tree. """ -import hashlib import os +from pycryptopp.hash import sha256 + from leap.mail.utils import first DEBUG = os.environ.get("BITMASK_MAIL_DEBUG") if DEBUG: - get_hash = lambda s: hashlib.sha256(s).hexdigest()[:10] + get_hash = lambda s: sha256.SHA256(s).hexdigest()[:10] else: - get_hash = lambda s: hashlib.sha256(s).hexdigest() + get_hash = lambda s: sha256.SHA256(s).hexdigest() """ |