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