• 
      

    Add a class for storing sensitive bytes.

    Review Request #15172 — Created July 15, 2026 and submitted

    Information

    cryptozoology
    master

    Reviewers

    This introduces SensitiveBytes, which is a bytearray that, once
    invalidated (by falling out of scope, using as a context manager and
    exiting, or manually invalidating), will clear the contents. This keeps
    sensitive data (such as decrypted plaintexts) from sticking around in
    memory accidentally.

    Unit tests pass.

    Updated the keys change based on this, and verified everything worked.

    Summary ID
    Add a class for storing sensitive bytes.
    This introduces `SensitiveBytes`, which is a `bytearray` that, once invalidated (by falling out of scope, using as a context manager and exiting, or manually invalidating), will clear the contents. This keeps sensitive data (such as decrypted plaintexts) from sticking around in memory accidentally.
    1eafacd3be1ca0548910d7c41afa5ccbac1c0ef8
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (fd7d857)