0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Generate a fingerprint given an SSH public key (without `ssh-keygen` or external dependencies)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
~> 0.7
~> 10.1
~> 2.14
 Project Readme

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!