crypto

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(key string) (string, error)

Hash hashes the provided key

func HashFile

func HashFile(filepath string) (string, error)

HashFile calculates the SHA256 hash of the current state of the file

func HashReader added in v0.1.4

func HashReader(reader io.Reader) (string, error)

func VerifyCert

func VerifyCert(filepath string, hostname string) (bool, *x509.Certificate, error)

VerifyCert verifies is a pem cert file is valid and trusted

Types

This section is empty.

Jump to

Keyboard shortcuts

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