From: Michael Rasmussen Date: Sat, 11 Aug 2018 23:19:18 +0000 (+0200) Subject: Make backwards compatible with nacl 1.0.x X-Git-Url: http://git.datanom.net/securemail.git/commitdiff_plain/83a29369f877307549a84dd2a60bc242eca4be7e Make backwards compatible with nacl 1.0.x --- diff --git a/cryptonize.py b/cryptonize.py index d4b5115..d24a72b 100644 --- a/cryptonize.py +++ b/cryptonize.py @@ -33,8 +33,6 @@ class Cryptonize: skey = self.sanitize_key(key) box = SecretBox(skey) if NACL_VERSION < "1.1.0": - from nacl.utils import random - from nacl.public import SecretBox nonce = random(SecretBox.NONCE_SIZE) cipher = box.encrypt(plain, nonce) else: