Introduction The security of users and their personal data while using a web application is paramount. While this guiding principle has been acknowledged even from the early stages of web development – bad actors find loopholes in applications, and may exploit your users. Many “standard” attacks are well-known and documented, and protection from them isn’t […]
How to Use window.crypto in Node.js
I’ve been writing a bunch of jest tests recently for libraries that use the underlying window.crypto methods like getRandomValues() and window.crypto.subtle key management methods. One problem I run into is that the window.crypto object isn’t available, so I need to shim it. To use the window.crypto methods, you will need Node 15+. You can set […]