Skip to content

SecureString / SecureBytes - can be securely wiped out from memory #724

Open
@WebWeWantBot

Description

@WebWeWantBot

title: SecureString / SecureBytes - can be securely wiped out from memory
date: 2025-03-21T14:46:59.064Z
submitter: castarco
number: 67dd7be38cc1b70076608e70
tags: [ ]
discussion: https://github.com/WebWeWant/webwewant.fyi/discussions/
status: [ discussing || in-progress || complete ]
related:

  • title:
    url:
    type: [ article || explainer || draft || spec || note || discussion ]

The impact is low, but mainly because this is focused on protecting against sophisticated attacks.

What I'd like to have is a way to safely destroy the information contained within a string (GC is not enough).

In JS, strings are immutable, so as a userland developer I cannot manually overwrite them, and we don't have any guarantees about the GC clearing its bits once it frees the object.

Other form of typed arrays are not suited for the job because they don't compose well with many other JS APIs that are used to manage user inputs or any other form of sensitive information.


If posted, this will appear at https://webwewant.fyi/wants/67dd7be38cc1b70076608e70/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions