crypto

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomBytes

func GenerateRandomBytes(n int) ([]byte, error)

Generate n number of random bytes from a cryptographic randomiser.

func GenerateRandomSafeBytes

func GenerateRandomSafeBytes(count int) ([]byte, error)

Operates the same way as `GenerateRandomBytes` but encodes the result using base64 encoding.

func GenerateRandomSafeString

func GenerateRandomSafeString(count int) (string, error)

Operates the same way as `GenerateRandomString` but encodes the result using base64 encoding.

func GenerateRandomString

func GenerateRandomString(count int) (string, error)

Generate a random string of the given length using bytes from the cryptographic randomiser.

Types

This section is empty.

Jump to

Keyboard shortcuts

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