From c05efa8d7ae464235cf83d7c0956e42dc6974103 Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:14 +0200 Subject: move *.html to *.md --- files/fr/web/api/crypto/getrandomvalues/index.html | 76 ---------------------- files/fr/web/api/crypto/getrandomvalues/index.md | 76 ++++++++++++++++++++++ files/fr/web/api/crypto/index.html | 54 --------------- files/fr/web/api/crypto/index.md | 54 +++++++++++++++ files/fr/web/api/crypto/subtle/index.html | 42 ------------ files/fr/web/api/crypto/subtle/index.md | 42 ++++++++++++ 6 files changed, 172 insertions(+), 172 deletions(-) delete mode 100644 files/fr/web/api/crypto/getrandomvalues/index.html create mode 100644 files/fr/web/api/crypto/getrandomvalues/index.md delete mode 100644 files/fr/web/api/crypto/index.html create mode 100644 files/fr/web/api/crypto/index.md delete mode 100644 files/fr/web/api/crypto/subtle/index.html create mode 100644 files/fr/web/api/crypto/subtle/index.md (limited to 'files/fr/web/api/crypto') diff --git a/files/fr/web/api/crypto/getrandomvalues/index.html b/files/fr/web/api/crypto/getrandomvalues/index.html deleted file mode 100644 index 7c0b91e5d7..0000000000 --- a/files/fr/web/api/crypto/getrandomvalues/index.html +++ /dev/null @@ -1,76 +0,0 @@ ---- -title: RandomSource.getRandomValues() -slug: Web/API/Crypto/getRandomValues -tags: - - API - - Cryptographie - - Methode(2) - - Méthode - - Reference - - Référence(2) -translation_of: Web/API/Crypto/getRandomValues -original_slug: Web/API/RandomSource/getRandomValues ---- -

{{APIRef("Web Crypto API")}}

- -

La méthode RandomSource.getRandomValues() permet d’obtenir des valeurs pseudo-aléatoires cryptographiquement satisfaisantes. Le tableau donné en paramètre est rempli avec des nombres pseudo-aléatoires.

- -

Pour garantir une performance suffisante, les implémentations n’utilisent pas un vrai générateur de nombres aléatoires, mais un générateur de nombres pseudo-aléatoires semé avec une valeur ayant suffisamment d'{{Glossary("entropie")}}. Les générateurs utilisés d’une implémentation à une autre seront différents mais toujours satisfaisants pour une utilisation en cryptographie. Les implémentations doivent également utiliser une graine ayant suffisamment d’entropie, comme une source d’entropie au niveau du système.

- -

Syntaxe

- -
cryptoObj.getRandomValues(typedArray);
- -

Paramètres

- -
-
typedArray
-
Un {{jsxref("TypedArray")}} de nombres entiers, qui est un {{jsxref("Int8Array")}}, un {{jsxref("Uint8Array")}}, un {{jsxref("Uint16Array")}}, un {{jsxref("Int32Array")}}, ou encore un {{jsxref("Uint32Array")}}. Tous les éléments du tableau seront subsitués avec des nombres aléatoires.
-
- -

Exceptions

- - - -

Exemple

- -
/* on part du principe ici que window.crypto.getRandomValues est disponible */
-
-var array = new Uint32Array(10);
-window.crypto.getRandomValues(array);
-
-console.log("Your lucky numbers:");
-for (var i = 0; i < array.length; i++) {
-    console.log(array[i]);
-}
-
- -

Spécification

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('Web Crypto API', '#RandomSource-method-getRandomValues')}}{{Spec2('Web Crypto API')}}Initial definition
- -

Compatibilité des navigateurs

- -
{{Compat("api.Crypto.getRandomValues")}}
- -

Voir aussi

- - diff --git a/files/fr/web/api/crypto/getrandomvalues/index.md b/files/fr/web/api/crypto/getrandomvalues/index.md new file mode 100644 index 0000000000..7c0b91e5d7 --- /dev/null +++ b/files/fr/web/api/crypto/getrandomvalues/index.md @@ -0,0 +1,76 @@ +--- +title: RandomSource.getRandomValues() +slug: Web/API/Crypto/getRandomValues +tags: + - API + - Cryptographie + - Methode(2) + - Méthode + - Reference + - Référence(2) +translation_of: Web/API/Crypto/getRandomValues +original_slug: Web/API/RandomSource/getRandomValues +--- +

{{APIRef("Web Crypto API")}}

+ +

La méthode RandomSource.getRandomValues() permet d’obtenir des valeurs pseudo-aléatoires cryptographiquement satisfaisantes. Le tableau donné en paramètre est rempli avec des nombres pseudo-aléatoires.

+ +

Pour garantir une performance suffisante, les implémentations n’utilisent pas un vrai générateur de nombres aléatoires, mais un générateur de nombres pseudo-aléatoires semé avec une valeur ayant suffisamment d'{{Glossary("entropie")}}. Les générateurs utilisés d’une implémentation à une autre seront différents mais toujours satisfaisants pour une utilisation en cryptographie. Les implémentations doivent également utiliser une graine ayant suffisamment d’entropie, comme une source d’entropie au niveau du système.

+ +

Syntaxe

+ +
cryptoObj.getRandomValues(typedArray);
+ +

Paramètres

+ +
+
typedArray
+
Un {{jsxref("TypedArray")}} de nombres entiers, qui est un {{jsxref("Int8Array")}}, un {{jsxref("Uint8Array")}}, un {{jsxref("Uint16Array")}}, un {{jsxref("Int32Array")}}, ou encore un {{jsxref("Uint32Array")}}. Tous les éléments du tableau seront subsitués avec des nombres aléatoires.
+
+ +

Exceptions

+ + + +

Exemple

+ +
/* on part du principe ici que window.crypto.getRandomValues est disponible */
+
+var array = new Uint32Array(10);
+window.crypto.getRandomValues(array);
+
+console.log("Your lucky numbers:");
+for (var i = 0; i < array.length; i++) {
+    console.log(array[i]);
+}
+
+ +

Spécification

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Web Crypto API', '#RandomSource-method-getRandomValues')}}{{Spec2('Web Crypto API')}}Initial definition
+ +

Compatibilité des navigateurs

+ +
{{Compat("api.Crypto.getRandomValues")}}
+ +

Voir aussi

+ + diff --git a/files/fr/web/api/crypto/index.html b/files/fr/web/api/crypto/index.html deleted file mode 100644 index f31a2ebaf6..0000000000 --- a/files/fr/web/api/crypto/index.html +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: Crypto -slug: Web/API/Crypto -translation_of: Web/API/Crypto ---- -

{{APIRef("Web Crypto API")}}

- -

L'interface Crypto représente les fonctions cryptographiques de base dans notre contexte actuel. Elle permet d'accéder à de solides générateur de nombres aléatoires dédiés à la cryptographie ainsi qu'aux principales primitives cryptographiques.

- -

Un objet avec cette interface est disponible dans le contexte web de la page via la propriété {{domxref("Window.crypto")}}.

- -

Propriétés

- -

Cette interface implémente les propriétés définies dans {{domxref("RandomSource")}}.

- -
-
{{domxref("Crypto.subtle")}} {{experimental_inline}}{{readOnlyInline}}
-
Retourne un objet {{domxref("SubtleCrypto")}} procurant un accès aux principales primitives cryptographiques, comme le hashage, les signatures, le chiffrement ou le déchiffrement.
-
- -

Methodes

- -

Cette interface implémente les méthodes définies dans {{domxref("RandomSource")}}.

- -
-
{{domxref("RandomSource.getRandomValues()") }}
-
Rempli le {{ jsxref("TypedArray") }} passé avec des valeurs aléatoires utilisables pour la cryptographie.
-
- -

Spécifications

- - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("Web Crypto API", "#crypto-interface", "Crypto")}}{{Spec2("Web Crypto API")}}Definition
- initiale
- -

Voir aussi

- - \ No newline at end of file diff --git a/files/fr/web/api/crypto/index.md b/files/fr/web/api/crypto/index.md new file mode 100644 index 0000000000..f31a2ebaf6 --- /dev/null +++ b/files/fr/web/api/crypto/index.md @@ -0,0 +1,54 @@ +--- +title: Crypto +slug: Web/API/Crypto +translation_of: Web/API/Crypto +--- +

{{APIRef("Web Crypto API")}}

+ +

L'interface Crypto représente les fonctions cryptographiques de base dans notre contexte actuel. Elle permet d'accéder à de solides générateur de nombres aléatoires dédiés à la cryptographie ainsi qu'aux principales primitives cryptographiques.

+ +

Un objet avec cette interface est disponible dans le contexte web de la page via la propriété {{domxref("Window.crypto")}}.

+ +

Propriétés

+ +

Cette interface implémente les propriétés définies dans {{domxref("RandomSource")}}.

+ +
+
{{domxref("Crypto.subtle")}} {{experimental_inline}}{{readOnlyInline}}
+
Retourne un objet {{domxref("SubtleCrypto")}} procurant un accès aux principales primitives cryptographiques, comme le hashage, les signatures, le chiffrement ou le déchiffrement.
+
+ +

Methodes

+ +

Cette interface implémente les méthodes définies dans {{domxref("RandomSource")}}.

+ +
+
{{domxref("RandomSource.getRandomValues()") }}
+
Rempli le {{ jsxref("TypedArray") }} passé avec des valeurs aléatoires utilisables pour la cryptographie.
+
+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName("Web Crypto API", "#crypto-interface", "Crypto")}}{{Spec2("Web Crypto API")}}Definition
+ initiale
+ +

Voir aussi

+ + \ No newline at end of file diff --git a/files/fr/web/api/crypto/subtle/index.html b/files/fr/web/api/crypto/subtle/index.html deleted file mode 100644 index 5b0b24a70b..0000000000 --- a/files/fr/web/api/crypto/subtle/index.html +++ /dev/null @@ -1,42 +0,0 @@ ---- -title: Crypto.subtle -slug: Web/API/Crypto/subtle -translation_of: Web/API/Crypto/subtle ---- -

{{APIRef("Web Crypto API")}}{{SecureContext_header}} 

- -

{{APIRef("Web Crypto API")}}

- -

La propriété Crypto.subtle en mode lecture seule retourne un objet {{domxref("SubtleCrypto")}} permettant de réaliser des opérations cryptographiques.

- -

Syntaxe

- -
var crypto = crypto.subtle;
- -

Spécifications

- - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{ SpecName('Web Crypto API', '#dfn-Crypto', 'Crypto.subtle') }}{{ Spec2('Web Crypto API') }}Définition initiale.
- -

Compatibilité navigateur

- -

{{Compat("api.Crypto.subtle")}}

- -

Voir aussi

- - diff --git a/files/fr/web/api/crypto/subtle/index.md b/files/fr/web/api/crypto/subtle/index.md new file mode 100644 index 0000000000..5b0b24a70b --- /dev/null +++ b/files/fr/web/api/crypto/subtle/index.md @@ -0,0 +1,42 @@ +--- +title: Crypto.subtle +slug: Web/API/Crypto/subtle +translation_of: Web/API/Crypto/subtle +--- +

{{APIRef("Web Crypto API")}}{{SecureContext_header}} 

+ +

{{APIRef("Web Crypto API")}}

+ +

La propriété Crypto.subtle en mode lecture seule retourne un objet {{domxref("SubtleCrypto")}} permettant de réaliser des opérations cryptographiques.

+ +

Syntaxe

+ +
var crypto = crypto.subtle;
+ +

Spécifications

+ + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{ SpecName('Web Crypto API', '#dfn-Crypto', 'Crypto.subtle') }}{{ Spec2('Web Crypto API') }}Définition initiale.
+ +

Compatibilité navigateur

+ +

{{Compat("api.Crypto.subtle")}}

+ +

Voir aussi

+ + -- cgit v1.2.3-54-g00ecf