--- title: Crypto slug: Web/API/Crypto tags: - API - Interface - NeedsTranslation - Reference - TopicStub - Web Crypto API translation_of: Web/API/Crypto ---
{{APIRef("Web Crypto API")}}
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.
An object with this interface is available on Web context via the {{domxref("Window.crypto")}} property.
This interface implements properties defined on {{domxref("RandomSource")}}.
This interface implements methods defined on {{domxref("RandomSource")}}.
Specification | Status | Comment |
---|---|---|
{{SpecName("Web Crypto API", "#crypto-interface", "Crypto")}} | {{Spec2("Web Crypto API")}} | Initial definition |
{{Compat("api.Crypto")}}