Description
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/