Skip to content

Commit aa90656

Browse files
imporved some funcs
1 parent 795f5e9 commit aa90656

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

enrocrypt/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Core(Hashing,Encryption,Basic):
1313
}'''
1414
def __init__(self) -> None:
1515
self.salt = ''
16-
def __call__(self,*args: Any):
16+
def set_config(self,*args: Any):
1717
configs = (args[0]['configs']['salt_file'])
1818
value = self.__Set_Salt(configs)
1919
return value

enrocrypt/hashing.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import hashlib, base64, uuid
22
from cryptography.hazmat.primitives import hashes
3-
from typing import Any
3+
from typing import Any, final
44
class Hashing():
55
def __init__(self) -> None:
66
self.salt = None
@@ -26,7 +26,8 @@ def Standard_Multi_Hash(self,Data:str):
2626
try: d.append(c[i+1])
2727
except: d.append(c[0])
2828
e.append(''.join(d))
29-
return(bytes(str(e[0]).encode()))
29+
final = self.BLAKE2(bytes(str(e[0]).encode()))
30+
return(final)
3031

3132
def __Salt(self,data,salt:bytes = None):
3233
if not salt:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
file = open('README.md','r').read()
33
setup(
44
name="enrocrypt",
5-
version="1.1.2",
5+
version="1.1.3",
66
author="Morgan-Phoenix",
77
author_email="[email protected]",
88
description="This is a Python Module For Encryption, Hashing And Other stuff",

0 commit comments

Comments
 (0)