Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.
/ ssh-fingerprint Public archive

Generate a fingerprint given an SSH public key (without `ssh-keygen` or external dependencies)

License

Notifications You must be signed in to change notification settings

heyvito/ssh-fingerprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssh-fingerprint

Gem Version Build Status Dependency Status codecov

Generate a fingerprint given an SSH public key (without ssh-keygen or external dependencies)

Installing

ssh-fingerprint is distributed as a gem. Install it through the gem command or add it to your Gemfile:

Installing through gem

$ gem install ssh-fingerprint

Installing through your Gemfile

gem 'ssh-fingerprint'

Usage

Using it is really simple. Read the key content to a variable and call SSHFingerprint.compute method. Example:

require 'ssh-fingerprint'

key = File.read(File.expand_path('~/.ssh/id_rsa.pub'))
puts SSHFingerprint.compute(key)
# => f5:d8:39:1d:7c:26:...

Pull requests are welcome!

About

Generate a fingerprint given an SSH public key (without `ssh-keygen` or external dependencies)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages