From 852a496c60e0524e9b0b37bc9b9a08da41d1ee61 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Thu, 24 Mar 2016 11:00:37 -0400 Subject: [fix] remove pycryptopp dependency cryptography is now a hard dependency, so we are removing the use of pycryptopp. --- service/pixelated/adapter/model/mail.py | 4 ++-- service/requirements.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py index 76df076e..a24818c0 100644 --- a/service/pixelated/adapter/model/mail.py +++ b/service/pixelated/adapter/model/mail.py @@ -19,11 +19,11 @@ import logging from email import message_from_file from email.mime.text import MIMEText from email.header import Header +from hashlib import sha256 import binascii from email.MIMEMultipart import MIMEMultipart from email.mime.nonmultipart import MIMENonMultipart -from pycryptopp.hash import sha256 import leap.mail.walk as walk from pixelated.adapter.model.status import Status from pixelated.support import date @@ -137,7 +137,7 @@ class Mail(object): return self._mime_multipart.as_string() def _get_chash(self): - return sha256.SHA256(self.raw).hexdigest() + return sha256(self.raw).hexdigest() class InputMail(Mail): diff --git a/service/requirements.txt b/service/requirements.txt index b74b7f94..48d55ac2 100644 --- a/service/requirements.txt +++ b/service/requirements.txt @@ -7,7 +7,6 @@ pyasn1==0.1.8 requests==2.9.1 srp==1.0.4 whoosh==2.5.7 -pycryptopp -e 'git+https://github.com/pixelated/leap_pycommon.git@develop#egg=leap.common' -e 'git+https://github.com/pixelated/leap_auth.git#egg=leap.auth' -e 'git+https://github.com/pixelated/soledad.git@develop#egg=leap.soledad.common&subdirectory=common/' -- cgit v1.2.3