Skip to content

Commit 5711d2e

Browse files
Bug FIx
1 parent 97dd345 commit 5711d2e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

enrocrypt/encryption.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from enrocrypt.error import *
2-
from enrocrypt.basic import Password_Creator
2+
from enrocrypt.basic import Basic
33
import base64
44
from cryptography.fernet import Fernet
55
from cryptography.hazmat.primitives.ciphers.aead import ChaCha20Poly1305
@@ -107,20 +107,20 @@ def FileDecryption(self,Path:str,KeyFilePath:str):
107107
if KeyFilePath is None:
108108
NoKeyFile()
109109
def __Base_Auth_Encryption(self,data:bytes,optd:bytes = None):
110-
password = Password_Creator()
110+
password = Basic.Password_Creator()
111111
key = ChaCha20Poly1305.generate_key()
112112
encryptor = ChaCha20Poly1305(key)
113113
ed = encryptor.encrypt(password,data,optd)
114114
print([key,password,ed])
115115
return [key,password,ed]
116116
def __Base_AESCCM(self,data:bytes,optd:bytes = None):
117-
password = Password_Creator()
117+
password = Basic.Password_Creator()
118118
key = AESCCM.generate_key(256)
119119
encryptor = AESCCM(key)
120120
ed = encryptor.encrypt(password,data,optd)
121121
return [key,password,ed]
122122
def __Base_AESGCM(self,data:bytes,optd:bytes = None):
123-
password = Password_Creator()
123+
password = Basic.Password_Creator()
124124
key = AESGCM.generate_key(256)
125125
encryptor = AESGCM(key)
126126
ed = encryptor.encrypt(password,data,optd)

0 commit comments

Comments
 (0)