调整项目为demo仓库

This commit is contained in:
floraachy
2025-01-10 10:56:45 +08:00
parent f560c7cb6a
commit db5fc42c90
314 changed files with 120 additions and 23538 deletions
+8
View File
@@ -15,6 +15,7 @@ from loguru import logger
# 本地应用/模块导入
from utils.files_utils.files_handle import file_to_base64, filepath_to_base64, get_files
from config.path_config import FILES_DIR
from utils.tools.aes_encrypt_decrypt import Encrypt
def zip_test_step(step_id, step_status_id=None):
@@ -198,3 +199,10 @@ def split_data(target: str, split_char: str, start_index: int, end_index: int =
return target.split(split_char)[start_index:end_index]
else:
return target.split(split_char)[start_index]
def aes_encrypt_data(target_str: str, ace_key):
"""
使用AES-CBC对称加密算法对密码进行加密
"""
ace = Encrypt(key=ace_key, iv=ace_key)
return ace.aes_encrypt(target_str)