A k6 extension for using extended crypto functions, mostly from golang.org/x/crypto.
Import an entire module's contents:
import * as xcrypto from "k6/x/crypto";
Import a single export from a module:
import { hkdf } from "k6/x/crypto";
Functions:
For complete API documentation click here!
To build a k6
binary with this extension, first ensure you have the prerequisites:
- Go toolchain
- Git
Then:
- Install
xk6
:
$ go install github.com/k6io/xk6/cmd/xk6@latest
- Build the binary:
$ xk6 build --with github.com/szkiba/xk6-crypto@latest