You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In JavaScript, there is no control over garbage collection. There is some thought that one could overwrite a TypedArray with zeros or random values to overwrite a secret in memory. Before implementing this, however, I would like to verify that this is actually the case (not just that a new TypedArray is created in memory with the new values and the old array is dereferenced and scheduled for deletion by the garbage collector, for instance.)
The text was updated successfully, but these errors were encountered:
you could implement a custom virtual dom and an input component yourself. hook into the keypress events and update/append to a buffer with the key pressed, and immediately overwrite the vdom before it can be GC'd, then overwrite the buffer when you're done with it.
In JavaScript, there is no control over garbage collection. There is some thought that one could overwrite a
TypedArray
with zeros or random values to overwrite a secret in memory. Before implementing this, however, I would like to verify that this is actually the case (not just that a newTypedArray
is created in memory with the new values and the old array is dereferenced and scheduled for deletion by the garbage collector, for instance.)The text was updated successfully, but these errors were encountered: