Skip to content

Commit 886c054

Browse files
authored
Document supported WebCrypto features (#1657)
* v0.52.x: sort WebCrypto methods in the sidebar * Crypto: include sections for supported algorithms and formats * Port changes to `next` * Fix Crypto module page
1 parent 812b781 commit 886c054

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+266
-132
lines changed

docs/sources/next/javascript-api/k6-experimental/webcrypto/aescbcparams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'AesCbcParams'
33
description: 'AesCbcParams represents the object that should be passed as the algorithm parameter into the encrypt and decrypt operation when using the AES-CBC algorithm.'
4-
weight: 07
4+
weight: 04
55
---
66

77
# AesCbcParams

docs/sources/next/javascript-api/k6-experimental/webcrypto/aesctrparams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'AesCtrParams'
33
description: 'AesCtrParams represents the object that should be passed as the algorithm parameter into the encrypt and decrypt operation when using the AES-CTR algorithm.'
4-
weight: 06
4+
weight: 05
55
---
66

77
# AesCtrParams

docs/sources/next/javascript-api/k6-experimental/webcrypto/aesgcmparams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'AesGcmParams'
33
description: 'AesGcmParams represents the object that should be passed as the algorithm parameter into the encrypt and decrypt operation when using the AES-GCM algorithm.'
4-
weight: 08
4+
weight: 06
55
---
66

77
# AesGcmParams

docs/sources/next/javascript-api/k6-experimental/webcrypto/aeskeygenparams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'AesKeyGenParams'
33
description: 'AesKeyGenParams represents the object that should be passed as the algorithm parameter into the generateKey operation, when generating an AES key.'
4-
weight: 04
4+
weight: 07
55
---
66

77
# AesKeyGenParams

docs/sources/next/javascript-api/k6-experimental/webcrypto/crypto/_index.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: 'Crypto'
33
description: 'Crypto offers basic cryptography features.'
44
weight: 01
5-
weight: 01
65
---
76

87
# Crypto
@@ -11,15 +10,13 @@ weight: 01
1110

1211
## Properties
1312

14-
| Name | Type | Description |
15-
| :-------------- | :------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------- |
16-
| `Crypto.subtle` | [SubtleCrypto](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/webcrypto/subtlecrypto) | The SubtleCrypto interface provides access to common cryptographic primitives, such as hashing, signing, encryption, or decryption. |
13+
| Name | Description |
14+
| :------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
15+
| [subtle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/webcrypto/subtlecrypto) | The [SubtleCrypto](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/webcrypto/subtlecrypto) interface provides access to common cryptographic primitives, such as hashing, signing, encryption, or decryption. |
1716

1817
## Methods
1918

20-
| Name | Type | Description |
21-
| :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------- | :---------- |
22-
| `Crypto.getRandomValues()` | [ArrayBuffer] |
23-
| (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) | Returns an array of cryptographically secure random values. |
24-
| `Crypto.randomUUID()` | [ArrayBuffer] |
25-
| (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) | Returns a randomly generated, 36 character long v4 UUID. |
19+
| Name | Description |
20+
| :----------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------- |
21+
| [getRandomValues()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/webcrypto/crypto/getrandomvalues/) | Returns an array of cryptographically secure random values. |
22+
| [randomUUID()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/webcrypto/crypto/randomuuid/) | Returns a randomly generated, 36 character long v4 UUID. |

docs/sources/next/javascript-api/k6-experimental/webcrypto/cryptokey.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'CryptoKey'
33
description: 'CryptoKey represents a cryptographic key used for encryption, decryption, signing, or verification.'
4-
weight: 03
4+
weight: 02
55
---
66

77
# CryptoKey

docs/sources/next/javascript-api/k6-experimental/webcrypto/cryptokeypair.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'CryptoKeyPair'
33
description: 'CryptoKeyPair represents an asymmetric key pair with public and private keys.'
4-
weight: 03
4+
weight: 08
55
---
66

77
# CryptoKeyPair

docs/sources/next/javascript-api/k6-experimental/webcrypto/ecdhkeyderiveparams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'EcdhKeyDeriveParams'
33
description: 'EcdhKeyDeriveParams is a parameter used for derive bits operation.'
4-
weight: 03
4+
weight: 10
55
---
66

77
# EcdhKeyDeriveParams

docs/sources/next/javascript-api/k6-experimental/webcrypto/ecdsaparams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'EcdsaParams'
33
description: 'EcdsaParams is a parameter used for sign or verify operations.'
4-
weight: 03
4+
weight: 11
55
---
66

77
# EcdsaParams

docs/sources/next/javascript-api/k6-experimental/webcrypto/eckeygenparams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'EcKeyGenParams'
33
description: 'EcKeyGenParams represents the object that should be passed as the algorithm parameter into the generateKey operation, when generating ECDH or ECDSA key pairs.'
4-
weight: 04
4+
weight: 09
55
---
66

77
# EcKeyGenParams

0 commit comments

Comments
 (0)