• 
      

    Add a class for storing sensitive bytes.

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

    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
    Checks run (2 succeeded)
    flake8 passed.
    JSHint passed.
    david
    1. Ship It!
    2.