From 4b65258f1cf05c6c3bdbd1d4e781446f8e169120 Mon Sep 17 00:00:00 2001 From: Jeff Tindell Date: Thu, 21 Sep 2017 15:25:07 -0400 Subject: [PATCH 1/2] uses pycryptodome --- netbox/secrets/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/secrets/models.py b/netbox/secrets/models.py index e8eb2ff45..b8f7e8e3e 100644 --- a/netbox/secrets/models.py +++ b/netbox/secrets/models.py @@ -1,7 +1,7 @@ from __future__ import unicode_literals import os -from Crypto.Cipher import AES, PKCS1_OAEP, XOR +from Crypto.Cipher import AES, PKCS1_OAEP from Crypto.PublicKey import RSA from django.conf import settings From c42c79b14764893afde1fcdfe155443131cfbfdd Mon Sep 17 00:00:00 2001 From: Jeff Tindell Date: Thu, 21 Sep 2017 15:26:31 -0400 Subject: [PATCH 2/2] Requires cryptodome --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8cd72419f..966020478 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,6 +17,6 @@ paramiko>=2.0.0 Pillow>=4.0.0 psycopg2>=2.6.1 py-gfm>=0.1.3 -pycrypto>=2.6.1 +pycryptodome>=3.4.5 sqlparse>=0.2 xmltodict>=0.10.2