fingerprint

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 4 Imported by: 33

Documentation

Overview

Package fingerprint provides a helper to create fingerprint string from certificate

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fingerprint

func Fingerprint(cert *x509.Certificate, algo crypto.Hash) (string, error)

Fingerprint creates a fingerprint for a certificate using the specified hash algorithm

func HashFromString

func HashFromString(s string) (crypto.Hash, error)

HashFromString allows looking up a hash algorithm by it's string representation

func StringFromHash

func StringFromHash(hash crypto.Hash) (string, error)

StringFromHash allows looking up a string representation of the crypto.Hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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