返回提交历史
Modified
g4f/gui/server/crypto.py
+1
-0
XFEstudio/gpt4free
Fix unittests
d6ba724b
代码差异
1 个文件
+1
-0
@@ -12,6 +12,7 @@ from ...cookies import get_cookies_dir
12
12
def create_or_read_keys() -> tuple[RSAPrivateKey, RSAPublicKey]:
13
13
private_key_file = os.path.join(get_cookies_dir(), "private_key.pem")
14
14
public_key_file = os.path.join(get_cookies_dir(), "public_key.pem")
15
os.makedirs(os.path.dirname(private_key_file), exist_ok=True)
15
16
16
17
if os.path.isfile(private_key_file) and os.path.isfile(public_key_file):
17
18
# Read private key