How to clear sensitive memory in JavaScript?

后端 未结 3 1005
情话喂你
情话喂你 2021-01-06 02:59

I have a login form for a user to type his/her password. This form is bound to an AngularJS model. Suppose that in the corresponding controller the user-given password is av

3条回答
  •  执念已碎
    2021-01-06 03:37

    Use binary/char typed arrays. Fill array with zeroes when you need to annihilate data in memory.

    • https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays

提交回复
热议问题