cryptography

package module
v0.0.0-...-0fd3e55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

type Crypto struct{}

Crypto is the k6 extension struct

func (*Crypto) EncryptData

func (c *Crypto) EncryptData(valueToEncrypt, password string) (string, error)

EncryptData encrypts the provided value using AES encryption

func (*Crypto) Exports

func (c *Crypto) Exports() modules.Exports

Exports returns the methods to be exported to JS

func (*Crypto) HashBody

func (c *Crypto) HashBody(payload, password string) (string, error)

HashBody hashes the payload using SHA256 and then encrypts the hash

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL