sigyllly commited on
Commit
4beb424
·
verified ·
1 Parent(s): b6a1b1e

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
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(30) + ".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
 
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