Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
/ xk6-crypto Public archive

A k6 extension for using extended crypto functions

License

Notifications You must be signed in to change notification settings

szkiba/xk6-crypto

Repository files navigation

xk6-crypto

Warning

This extension is deprecated. In the meantime, k6 supports webcrypto, it is advisable to use it in new tests. If you need this extension because of your old tests or if you want to continue development, feel free to fork it.

A k6 extension for using extended crypto functions, mostly from golang.org/x/crypto.

Built for k6 using xk6.

Usage

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";

API

Functions:

For complete API documentation click here!

Build

To build a k6 binary with this extension, first ensure you have the prerequisites:

Then:

  1. Install xk6:
$ go install go.k6.io/xk6/cmd/xk6@latest
  1. Build the binary:
$ xk6 build --with github.com/szkiba/xk6-crypto@latest

About

A k6 extension for using extended crypto functions

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published