aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/crypto_property/index.md
blob: 359d529773c83a788a4afe06f8ed0eb1bbe91bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
title: Window.crypto
slug: Web/API/crypto_property
translation_of: Web/API/Window/crypto
original_slug: Web/API/Window/crypto
---
{{APIRef}}

La propriété, en lecture seule, {{domxref("Window.crypto")}} retourne l'objet {{domxref("Crypto")}}  associé à l'objet global. Cet objet permet aux pages web d'avoir un accès à certains services liés à cryptographie.

## Syntaxe

    var cryptoObj = window.crypto || window.msCrypto; // pour IE 11

## Spécifications

| Spécification                                                                                | Statut                               | Commentaire         |
| -------------------------------------------------------------------------------------------- | ------------------------------------ | ------------------- |
| {{SpecName("Web Crypto API", "#dfn-GlobalCrypto", "Window.crypto")}} | {{Spec2("Web Crypto API")}} | Définition initiale |

## Compatibilité des navigateurs

{{Compat("api.Window.crypto")}}

## Voir aussi

- L'objet global {{domxref("Window")}}
- L'interface {{domxref("Crypto")}}