cryptoutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package cryptoutil provides shared cryptographic helpers used across gas-auth sub-packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomString

func RandomString(n int) (string, error)

RandomString generates n random bytes and returns them as a URL-safe base64 string (no padding).

func SHA256Hex

func SHA256Hex(s string) string

SHA256Hex returns the hex-encoded SHA-256 hash of s.

Types

This section is empty.

Jump to

Keyboard shortcuts

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