crypto

package
v0.0.0-...-a84335b Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package crypto provides cryptographic actions and primitives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomBytes

func GenerateRandomBytes(size int) []byte

GenerateRandomBytes returns random bytes. If rand.Read fails, the process panics.

func GenerateRandomString

func GenerateRandomString(size int) string

GenerateRandomString returns a base64 encoded string of bytes of the given size.

Types

This section is empty.

Jump to

Keyboard shortcuts

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