encryption

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService() (*Service, error)

func (*Service) Encrypt

func (s *Service) Encrypt(auth, p256dh string, plaintext []byte) (*bytes.Buffer, error)

Encrypt return *bytes.Buffer with ciphertext.

func (*Service) Rotate

func (s *Service) Rotate(interval time.Duration)

Rotate enables key rotation according to interval.

Jump to

Keyboard shortcuts

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