Skip to content

Commit ce0916d

Browse files
committed
fixed requested issue
1 parent 925af1c commit ce0916d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The **BYK-RAG Module** is part of the Burokratt ecosystem, designed to provide *
1212
- Models searchable via dropdown with cache-enabled indicators.
1313

1414
- **Enhanced Security with RSA Encryption**
15-
- LLM credentials encrypted with RSA-4096 asymmetric encryption before storage.
15+
- LLM credentials encrypted with RSA-2048 asymmetric encryption before storage.
1616
- GUI encrypts using public key; CronManager decrypts with private key.
1717
- Additional security layer beyond HashiCorp Vault's encryption.
1818

src/utils/decrypt_vault_secrets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ def decrypt_rsa_oaep(encrypted_base64url: str, private_key_pem: str) -> str:
6767
loaded_key = serialization.load_pem_private_key(
6868
private_key_pem.encode("utf-8"), password=None, backend=default_backend()
6969
)
70-
70+
7171
# Type check and cast to RSA private key
7272
if not isinstance(loaded_key, rsa.RSAPrivateKey):
7373
raise TypeError("Private key must be an RSA key")
74-
74+
7575
private_key: rsa.RSAPrivateKey = loaded_key
7676

7777
# Decode Base64URL to bytes (in memory)

0 commit comments

Comments
 (0)