crypto

package
v0.0.0-...-e0772cd Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomBytes

func RandomBytes(length int) ([]byte, error)

func RandomUrlSafeString

func RandomUrlSafeString(length int) (string, error)

Types

type SimpleEncryptor

type SimpleEncryptor interface {
	Encrypt(data []byte) ([]byte, error)
	Decrypt(data []byte) ([]byte, error)
}

This is a simple encryptor interface that does not support crypto configuration keys, IVs, etc. It is meant to be used for simple encryption/decryption tasks for internal data security. This is not meant to be used for secure communication

Jump to

Keyboard shortcuts

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