encrypt

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx *core.Context) (hook.Hook, error)

Types

type Encrypt

type Encrypt struct {
	// contains filtered or unexported fields
}

func NewEncrypt

func NewEncrypt() *Encrypt

func (*Encrypt) Encrypt

func (e *Encrypt) Encrypt(plaintext, key string) (string, error)

type EncryptHook

type EncryptHook struct {
	hook.HookImpl
	// contains filtered or unexported fields
}

func (*EncryptHook) HandlePage

func (h *EncryptHook) HandlePage(page *content.Page) *content.Page

type Option

type Option struct {
	Password    string `json:"password"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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