lib

package
v0.0.0-...-7e7e9a6 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePrivKey

func GeneratePrivKey() ed25519.PrivateKey

Generates a new private key for onion service

func GenerateRandomString

func GenerateRandomString(n int) string

GenerateRandomString returns a securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

Credits: https://gist.github.com/dopey/c69559607800d2f2f90b1b1ed4e550fb#file-main-go-L46

Types

This section is empty.

Jump to

Keyboard shortcuts

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