crypto

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package crypto provides functions for encrypting and decrypting data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(r io.Reader, secret []byte) ([]byte, error)

Decrypt reads the encrypted data from the reader and returns the decrypted data.

func Encrypt

func Encrypt(w io.Writer, secret []byte, plaintext []byte) error

Encrypt creates a new EncryptWriter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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