base64

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 3 Imported by: 0

README

Base64 Encoder Secret Modifier (b64)

This modifier allows you to encode a dug-up secret value into a Base64 string.

Note: This modifier is also aliased as ?b64e.

Status

Built-in: This modifier is included and enabled by default in spelunk.

Usage

To use the Base64 modifier, append ?b64 to your secret coordinates URI.

Syntax
<scheme>://<location>?b64
  • Modifier Key: b64 (or b64e)
  • Value: None required. Any value provided is ignored.
Example

Suppose you have a plain secret my-secret-password.

To base64 encode it:

plain://my-secret-password?b64

Result: bXktc2VjcmV0LXBhc3N3b3Jk

Behavior

  1. Encoding: The modifier takes the secret value retrieved by the source and encodes it using standard Base64 encoding.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretModifierBase64

type SecretModifierBase64 struct{}

SecretModifierBase64 is a modifier that encodes the secret value to a base64 string.

To use it, append the modifier `b64` to the given secret coordinates string:

plain://my-secret?b64

NOTE: This is "aliased" as `?b64e` by base64_encoder.SecretModifierBase64Encoder.

func (*SecretModifierBase64) Modify

func (s *SecretModifierBase64) Modify(
	_ context.Context,
	secretValue string,
	_ string,
) (string, error)

func (*SecretModifierBase64) Type

func (s *SecretModifierBase64) Type() string

Jump to

Keyboard shortcuts

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