Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fingerprint ¶
Fingerprint encodes the given digest using the encoding format. If an invalid encoding is passed, the return value will be an empty string.
Types ¶
type Encoding ¶
type Encoding int
Encoding defines the supported encodings for certificates and key fingerprints.
This type is the base for sshutil.FingerprintEncoding and x509util.FingerprintEncoding types.
const ( // HexFingerprint represents the hex encoding of the fingerprint. // // This is the default encoding for an X.509 certificate. HexFingerprint Encoding = iota + 1 // Base64Fingerprint represents the base64 encoding of the fingerprint. // // This is the default encoding for a public key. Base64Fingerprint // Base64URLFingerprint represents the base64URL encoding of the fingerprint. Base64URLFingerprint // Base64RawFingerprint represents the base64RawStd encoding of the // fingerprint. // // This is the default encoding for an SSH key and certificate. Base64RawFingerprint // Base64RawURLFingerprint represents the base64RawURL encoding of the fingerprint. Base64RawURLFingerprint // EmojiFingerprint represents the emoji encoding of the fingerprint. EmojiFingerprint )
Click to show internal directories.
Click to hide internal directories.