crypto

package
v0.0.0-...-fbdc1e2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSecret

func GenerateSecret(length int) (string, error)

GenerateSecret generates a cryptographically secure random secret of the specified length

func KeyGen

func KeyGen() error

KeyGen generates private/public keypair and stores it in files

func ReadPrivateKey

func ReadPrivateKey(path string) (*rsa.PrivateKey, error)

ReadPrivateKey reads private key from file path

Types

This section is empty.

Jump to

Keyboard shortcuts

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