Commit graph

3 commits

Author SHA1 Message Date
ec3f3a64cc
fix: after code review 2026-04-01 17:32:52 +02:00
5641a746b7 feat: enhance security by adding security_tier parameter and improving secure memory handling
This commit introduces the security_tier parameter to all SecureChatCompletion calls, allowing users to specify security levels (standard, high, maximum). It also refactors secure memory management in SecureCompletionClient.py to use secure_bytearray instead of secure_bytes, improves memory protection by aligning addresses to page boundaries, and enhances the secure memory locking mechanism. The README.md has been updated to document the new security_tier parameter and include missing import statements.
2026-02-03 13:59:46 +01:00
197d498ea2 feat: implement secure memory operations for enhanced data protection
Integrate secure memory handling in SecureCompletionClient to protect plaintext payloads from disk swapping and memory lingering. The implementation uses a secure_bytes context manager to safeguard sensitive data during encryption. Added fallback mechanism with warning when SecureMemory module is unavailable. Updated docstring to reflect the new security measure.
2026-01-13 12:13:05 +01:00