fix: remove bcrypt and passlib pip dep
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
2 files changed
+1
-7
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user