crypto

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptEntry

func DecryptEntry(identities, passwordStore, name string) (string, error)

func DecryptIdentities

func DecryptIdentities(identitiesPath string) (string, error)

func EntryFile

func EntryFile(passwordStore, name string) (string, error)

func ParseRecipients

func ParseRecipients(contents string) ([]age.Recipient, error)

Parse the entire text of an age recipients file.

func SaveEntry

func SaveEntry(recipients, passwordStore, name, password string) error

Encrypt the password and save it to a file.

func WrapDecrypt

func WrapDecrypt(r io.Reader, identities ...age.Identity) (io.Reader, error)

Returns a reader that can handle both armored and binary age files.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳