JavaScript

Explain Web Crypto API

Hard
4
Added
Built-in cryptography: hashing, encryption, key generation. More secure than JS implementations.

Solution Code

JavaScript
crypto.subtle.digest('SHA-256', data);
Explanation
Requires HTTPS. Asynchronous operations return promises.

Guided Hints

Common algorithms
Browser support