From ca861b2e5c53f3b0f529861bb333c35edebcb6dd Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Tue, 21 May 2024 08:42:07 -0400 Subject: [PATCH] fix: remove bcrypt and passlib pip dep Signed-off-by: Devin Buhl --- bootstrap/scripts/plugin.py | 6 +----- requirements.txt | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/bootstrap/scripts/plugin.py b/bootstrap/scripts/plugin.py index 57a0682b..8944f38d 100644 --- a/bootstrap/scripts/plugin.py +++ b/bootstrap/scripts/plugin.py @@ -6,14 +6,10 @@ from typing import Any from typing import Any from netaddr import IPNetwork -from bcrypt import hashpw, gensalt import makejinja import validation -def encrypt(value: str) -> str: - return hashpw(value.encode(), gensalt(rounds=10)).decode("ascii") - def nthhost(value: str, query: int) -> str: value = IPNetwork(value) @@ -54,7 +50,7 @@ class Plugin(makejinja.plugin.Plugin): def filters(self) -> makejinja.plugin.Filters: - return [encrypt, nthhost] + return [nthhost] def path_filters(self): diff --git a/requirements.txt b/requirements.txt index bdc5b50e..e4d7893f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,4 @@ -bcrypt==4.1.3 cloudflare==2.20.0 email-validator==2.1.1 makejinja==2.6.0 netaddr==1.2.1 -passlib==1.7.4