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 typing import Any
|
||||||
from netaddr import IPNetwork
|
from netaddr import IPNetwork
|
||||||
from bcrypt import hashpw, gensalt
|
|
||||||
|
|
||||||
import makejinja
|
import makejinja
|
||||||
import validation
|
import validation
|
||||||
|
|
||||||
def encrypt(value: str) -> str:
|
|
||||||
return hashpw(value.encode(), gensalt(rounds=10)).decode("ascii")
|
|
||||||
|
|
||||||
|
|
||||||
def nthhost(value: str, query: int) -> str:
|
def nthhost(value: str, query: int) -> str:
|
||||||
value = IPNetwork(value)
|
value = IPNetwork(value)
|
||||||
@@ -54,7 +50,7 @@ class Plugin(makejinja.plugin.Plugin):
|
|||||||
|
|
||||||
|
|
||||||
def filters(self) -> makejinja.plugin.Filters:
|
def filters(self) -> makejinja.plugin.Filters:
|
||||||
return [encrypt, nthhost]
|
return [nthhost]
|
||||||
|
|
||||||
|
|
||||||
def path_filters(self):
|
def path_filters(self):
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
bcrypt==4.1.3
|
|
||||||
cloudflare==2.20.0
|
cloudflare==2.20.0
|
||||||
email-validator==2.1.1
|
email-validator==2.1.1
|
||||||
makejinja==2.6.0
|
makejinja==2.6.0
|
||||||
netaddr==1.2.1
|
netaddr==1.2.1
|
||||||
passlib==1.7.4
|
|
||||||
Reference in new issue
Block a user