返回提交历史
Modified
g4f/gui/server/crypto.py
+2
-2
XFEstudio/gpt4free
fix(crypto): restore 1024-bit key_size for proof-of-work embedding
fa2b2b90
代码差异
1 个文件
+2
-2
@@ -41,8 +41,8 @@ def create_or_read_keys() -> tuple[RSAPrivateKey, RSAPublicKey]:
41
41
return private_key, public_key
42
42
43
43
# Generate keys
44
# Note: Using 2048 bits for the session key to comply with cryptographic security standards
45
private_key_obj = rsa.generate_private_key(public_exponent=65537, key_size=2048)
44
# Note: Using 1024 bits for the session key so the user can put it his secret (captcha)
45
private_key_obj = rsa.generate_private_key(public_exponent=65537, key_size=1024)
46
46
public_key_obj = private_key_obj.public_key()
47
47
48
48
# Serialize private key