core

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: GPL-3.0 Imports: 9 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentDir, _ = os.Getwd()

CurrentDir is the current directory where Merlin was executed from

View Source
var Debug = false

Debug puts Merlin into debug mode and displays debug messages

View Source
var Verbose = false

Verbose puts Merlin into verbose mode and displays verbose messages

Functions

func DecryptJWE added in v0.8.0

func DecryptJWE(jweString string, key []byte) (messages.Base, error)

DecryptJWE takes provided JWE string and decrypts it using the per-agent key

func GetJWEAsymetric added in v0.8.0

func GetJWEAsymetric(data []byte, key *rsa.PublicKey) (string, error)

GetJWEAsymetric takes an input, typically a gob encoded messages.Base, and returns a compact serialized JWE using the provided input RSA public key

func GetJWESymetric added in v0.8.0

func GetJWESymetric(data []byte, key []byte) (string, error)

GetJWESymetric takes an input, typically a gob encoded messages.Base, and returns a compact serialized JWE using the provided input key

func RandStringBytesMaskImprSrc

func RandStringBytesMaskImprSrc(n int) string

RandStringBytesMaskImprSrc generates and returns a random string of n characters long

Types

This section is empty.

Jump to

Keyboard shortcuts

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