fix: remove bcrypt and passlib pip dep

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2024-05-21 08:42:07 -04:00
1 parent c171d6a641
commit ca861b2e5c
2 files changed
+1 -7

No files matched your search

+1 -5
View File
@@ -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):