1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/openssh.R
\name{fingerprint}
\alias{fingerprint}
\title{OpenSSH fingerprint}
\usage{
fingerprint(key, hashfun = sha256)
}
\arguments{
\item{key}{a public or private key}
\item{hashfun}{which hash function to use to calculate the fingerprint}
}
\description{
Calculates the OpenSSH fingerprint of a public key. This value should
match what you get to see when connecting with SSH to a server. Note
that some other systems might use a different algorithm to derive a
(different) fingerprint for the same keypair.
}
\examples{
mykey <- rsa_keygen()
pubkey <- as.list(mykey)$pubkey
fingerprint(mykey)
fingerprint(pubkey)
# Some systems use other hash functions
fingerprint(pubkey, sha1)
fingerprint(pubkey, sha256)
# Other key types
fingerprint(dsa_keygen())
}
|