INDEPENDENT PERSPECTIVES. INTELLIGENT FUTURES.FOLLOW @THESITIMES ↗
The Super Intelligence Times.
AI · SUPERINTELLIGENCE · ROBOTICS · TECHNOLOGYTHE WORLD, REIMAGINED.
← Technology deskTechnology / ORIGINAL EXPLAINER

Browser Cryptography Supplies Tools, Not a Complete Security Design

The Web Crypto API makes primitives available while leaving critical choices to the application.

Labyrinthine circuit board lines
Labyrinthine circuit board lines. · Illustrative archive photograph. quapan / Wikimedia Commons · CC BY 2.0. Resized for display; image rights remain with the credited creator.

Building blocks in the browser

The Web Crypto API exposes cryptographic operations such as hashing, signing and encryption to web applications. These capabilities can support useful designs without requiring every developer to implement the underlying mathematics. But cryptographic primitives are not interchangeable tools. A hash, a signature and an encrypted message have different purposes. Choosing a supported operation is only one part of the problem. Key generation, storage, distribution and lifecycle often determine whether the larger system provides the protection its interface appears to promise. The lifetime of a key can outlast the page that originally created it.

A signature is not secrecy

Consider a public document whose publisher wants readers to detect unauthorized changes. A digital signature can help establish authenticity and integrity without hiding the document. Encryption addresses a different aim: limiting who can read the contents. A design that confuses those goals may add complexity without delivering the intended protection. The browser environment also includes downloaded application code, so questions about who controls that code remain relevant. Strong mathematics cannot compensate for an application that gives sensitive material to the wrong recipient.

Use reviewed constructions

Cryptographic engineering rewards established protocols and careful review. Combining primitives in an improvised arrangement can create weaknesses that are difficult to see from ordinary testing. A successful round trip—encrypting and decrypting a sample—does not prove a system resists an attacker. For a reader evaluating a product, the useful questions concern the threat being addressed and the handling of keys. For a builder, the API is a capable foundation, but a complete security claim must include the surrounding protocol, implementation and operational practices.

Sources & further reading

MDN: Web Crypto API ↗

AI-assisted editorial explainer. Sources are provided for verification.

Suggest a correction ↗

Continue reading

The Small Switch Behind the Digital World ↗

Why Silicon Became a Computing Material ↗

Why a GPU Is More Than a Graphics Chip ↗

Subscribe to the Times ↗

Explore the Times.