This is a minimal example demonstrating web encryption. It prompts an encryption key, which is used for the database. If the database doesn't exist yet, it will apply the encryption key when creating the database for the specified database name. If the database does exist, it will use the encryption key to access the database - should the provided key be different to the one provided upon creation it fail to open the database.
To see it in action:
cdinto this directory and runpnpm install.- Run
pnpm start. - Open the localhost URL displayed in the terminal output in your browser.