By Kevin Williams

Recently, I added a signup form to my website and decided to encrypt the individuals name and email prior to sending it off to my API. In the past, I have used asymmetric encryption and worked with jsencrypt, so I thought that would be a good choice here - get a public key from the api, use that to encrypt everything, and decrypt it with a private key on the backend.

Unfortunately, my site is built with Docusaurus, which utilizes server side rendering. I didn't realize that would be an issue until I tried building and received the error: "window is not defined"

Kevin Williams • 44 Articles

A full stack software engineer since 2018, specializing in Azure and .Net.

View Articles