Files
flutter_opencode_client/lib/view/page/private_key
GT610 2f67938b09 feat (Private Key Editing): Added private key format normalization (#1080)
* feat (Private Key Editing): Added private key format normalization

Added the _normalizePrivateKey method to normalize private key formats:
- Removes whitespace characters from Base64 content
- Ensures the standard format of 64 characters per line
- Ensures that the private key ends with a newline character

* fix(private_key): Fixes PEM private key formatting issues while preserving metadata headers

Properly handles metadata headers (such as Proc-Type and DEK-Info) in encrypted PEM keys and preserves these headers when cleaning up Base64 content. Additionally, optimizes the logic for removing whitespace characters and improves performance by using precompiled regular expressions.

* refactor(ui): Remove unused ctx parameters and optimize the selection window caching logic

- Remove unused egui::Context parameters from functions related to settings_page
- Add a check for the length of items in the selection window cache to improve cache validity
- Simplify the cache data structure and remove unnecessary online data validation logic

* fix(private_key): Fixed an issue with matching header and footer tags in PEM-format private keys

Added validation for consistency of header and footer tags in PEM-format private keys to ensure that the content following “BEGIN” and “END” is identical
2026-03-21 23:33:31 +08:00
..