Generate a fingerprint given an SSH public key (without
ssh-keygen or external dependencies)
- based on bahamas10/node-ssh-fingerprint
ssh-fingerprint is distributed as a gem. Install it through the
gem command or add it to your
$ gem install ssh-fingerprint
Installing through your
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!