files/en-us/web/api/crypto/index.md
{{APIRef("Web Crypto API")}}{{AvailableInWorkers}}
The Crypto interface represents basic cryptography features available in the current context.
It allows access to a cryptographically strong random number generator and to cryptographic primitives.
The Crypto is available in windows using the {{domxref("Window.crypto")}} property and in workers using the {{domxref("WorkerGlobalScope.crypto")}} property.
{{Specifications}}
{{Compat}}