crypto

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package crypto provides cryptographic hashing functions and UUID generation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HMACSHA1

func HMACSHA1(message, key string) string

HMACSHA1 computes the HMAC-SHA1 of a message with a secret key.

func HMACSHA256

func HMACSHA256(message, key string) string

HMACSHA256 computes the HMAC-SHA256 of a message with a secret key.

func HMACSHA512

func HMACSHA512(message, key string) string

HMACSHA512 computes the HMAC-SHA512 of a message with a secret key.

func MD5

func MD5(input string) string

MD5 computes the MD5 hash of the input string and returns it as a hex-encoded string.

func SHA1

func SHA1(input string) string

SHA1 computes the SHA1 hash of the input string and returns it as a hex-encoded string.

func SHA256

func SHA256(input string) string

SHA256 computes the SHA256 hash of the input string and returns it as a hex-encoded string.

func SHA512

func SHA512(input string) string

SHA512 computes the SHA512 hash of the input string and returns it as a hex-encoded string.

func UUID

func UUID() string

UUID generates a new UUID v4.

Types

This section is empty.

Jump to

Keyboard shortcuts

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