From 83a29369f877307549a84dd2a60bc242eca4be7e Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Sun, 12 Aug 2018 01:19:18 +0200 Subject: [PATCH] Make backwards compatible with nacl 1.0.x --- cryptonize.py | 2 -- 1 file changed, 2 deletions(-) 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: -- 2.39.2