Replaces your new tab page with a page that hashes any text you type using SHA-256.
Runs on Chrome, Edge, Firefox · Manifest V3 · Surfaces: new tab, background service worker · Styling: CSS · Level: beginner
Create this project
npx extension@latest create my-newtab-crypto --template newtab-crypto
cd my-newtab-crypto
npm install
npm run dev
With an AI agent: ask it to "Create an extension from the newtab-crypto template." With the extension.dev MCP it runs extension_create. Setup: https://docs.extension.dev/tools/mcp/clients
What it is for
Hashing text with the Web Crypto API inside an extension
A new tab page that does real work with no network
Reference for browser crypto primitives under MV3
First steps
Run npm run dev to launch the extension
Open a new tab and type any text to see its SHA-256 hash
Edit src/newtab/scripts.ts to hash with a different algorithm