团队作业(五):冲刺总结5
团队作业(五):项目冲刺5
各个成员今日完成的任务
范超明:继续完善前端代码
周意凯:继续加密解密代码修改
黄琪凯:继续完善后端代码
尤其羽:继续完善后端代码
杨语桐:代码测试
代码完成情况
前端新增部分代码
def main() :
    server_password = input("input server password: ")
    sm4_key = generate_sm4_key(server_password)
    if "server_password.encrypted" not in os.listdir(os.getcwd()):
        print("first time to start server")
        with open("server_password", 'w') as server_info:
            server_info.write(server_password)
        encrypt_file("server_password", sm4_key)
    elif read_and_check_server_info(server_password, sm4_key):
        print("correct password, start server")
    else:
        print("wrong password, exit")
        return
后端新增部分代码
def encrypt_one_file(filename, directory, sm4_key):
    if filename.endswith(".encrypted"):
        print("the file is encrypted, exit")
        return
    if filename not in os.listdir(directory):
        print("no such file, exit")
        return
    encrypt_file(os.path.join(directory, filename), sm4_key)
加密解密部分新增代码
def decrypt_files(directory, sm4_key):
    print("decrypting all the files, waiting...")
    for filename in os.listdir(directory):
        file_path = os.path.join(directory, filename)
        # 检查文件是否已经加密
        if filename.endswith('.encrypted'):
            decrypt_file(file_path, sm4_key)
    print("decrypt all the files successfully")
提交到gitee
明日各个成员的任务安排
范超明:继续完善前端代码
周意凯:继续加密解密代码修改
黄琪凯:继续完善后端代码
尤其羽:继续完善后端代码
杨语桐:代码测试
团队合照

各个成员今日对项目的贡献量
| 姓 名 | 贡献量 | 
|---|---|
| 范超明 | 3 | 
| 周意凯 | 3 | 
| 黄琪凯 | 3 | 
| 尤其羽 | 3 | 
| 杨语桐 | 3 | 
 
                     
                    
                 
                    
                

 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号