摘要:
代码 from Crypto.Cipher import AES from binascii import b2a_hex, a2b_hex from django.conf import settings class Cryptography: def __init__(self, key=Non 阅读全文
摘要:
上传文件 随机文件夹创建 上传时如果考虑多用户同时上传同一份文件 极端一些可以考虑多用户同时使用一个账号同时对一个重名文件进行上传之类的 所以这里如果需要, 可以对每一次的上传文件的请求进行唯一标识比如用时间轴之类的区分开 @staticmethod def tmp_dir(file_name, n 阅读全文