Fingerprint of an Import/Export Public Key
Source:R/import_export_crypto.R
episodic_import_export_key_fingerprint.RdThe SHA-256 of a public key, as the audit trail records it. Read it to your partner over a channel other than the one you sent the key file through (a telephone call does): when both of you see the same fingerprint, the file was not swapped on the way.
Arguments
- key
A public key: its text, or the path of the
.pubfileepisodic_import_export_keygen()wrote. An encryption key and a signing key are both accepted; a secret key is refused.
Examples
dir <- tempfile()
keys <- episodic_import_export_keygen(dir)
episodic_import_export_key_fingerprint(keys$signing_public)
#> [1] "76360a751fceddba7b3a50ea1c5bcb6c6015e7feef4255238c5fe7470b30050d"
unlink(dir, recursive = TRUE)