Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -196,7 +196,7 @@ def generate_random_password(length=12):
|
|
196 |
|
197 |
# Function to create an encrypted 7z archive
|
198 |
def create_encrypted_7z_archive(file_path, password):
|
199 |
-
archive_name = generate_random_string(
|
200 |
archive_path = os.path.join(os.path.dirname(file_path), archive_name)
|
201 |
|
202 |
# Use 7z command to create an encrypted archive
|
|
|
196 |
|
197 |
# Function to create an encrypted 7z archive
|
198 |
def create_encrypted_7z_archive(file_path, password):
|
199 |
+
archive_name = generate_random_string(19) + ".7z" # Generate a 30-character long name
|
200 |
archive_path = os.path.join(os.path.dirname(file_path), archive_name)
|
201 |
|
202 |
# Use 7z command to create an encrypted archive
|