While we intend to keep experimental modules as stable as possible, we may need to introduce breaking changes. This could happen at future k6 releases until the module becomes fully stable and graduates as a k6 core module. For more information, refer to the extension graduation process.
Experimental modules maintain a high level of stability and follow regular maintenance and security measures. Feel free to open an issue if you have any feedback or suggestions.
With this experimental module, you can use the WebCrypto API in your k6 scripts. However, note that this API is not yet fully implemented and some algorithms and features might still be missing.
The module exports a top-level crypto object with the following properties and methods:
|Fills the passed TypedArray with cryptographically sound random values.
|Returns a randomly generated, 36 character long v4 UUID.
|The SubtleCrypto interface provides access to common cryptographic primitives, such as hashing, signing, encryption, or decryption.