e2ee

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(encoded string, key []byte, purpose string) ([]byte, error)

func DecryptLegacy

func DecryptLegacy(encrypted, passphrase []byte) ([]byte, error)

func DecryptLegacyBase64

func DecryptLegacyBase64(encoded string, passphrase []byte) ([]byte, error)

func Encrypt

func Encrypt(plaintext, key []byte, purpose string) (string, error)

func LegacyLookupHash

func LegacyLookupHash(passphrase []byte) string

Types

type Keys

type Keys struct {
	LookupToken   []byte
	Note          []byte
	Image         []byte
	ImageMetadata []byte
}

func DeriveKeys

func DeriveKeys(passphrase []byte) (*Keys, error)

func (*Keys) Clear

func (k *Keys) Clear()

func (*Keys) LookupHeader

func (k *Keys) LookupHeader() string

Jump to

Keyboard shortcuts

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