Skip to content

Instantly share code, notes, and snippets.

@necrogami
Created February 8, 2017 14:49
Show Gist options
  • Select an option

  • Save necrogami/0e45c2c5b9eeab5be3012f085d324f52 to your computer and use it in GitHub Desktop.

Select an option

Save necrogami/0e45c2c5b9eeab5be3012f085d324f52 to your computer and use it in GitHub Desktop.
<?php
/**
* Created by PhpStorm.
* User: necrogami
* Date: 2/8/17
* Time: 09:38
*/
require_once 'vendor/autoload.php';
use phpseclib\Crypt\RSA;
$rsa = new RSA;
$key = file_get_contents('/Users/necrogami/.ssh/8192.pub');
$rsa->loadKey($key);
echo $rsa->getSize() . " SHA256:". $rsa->getPublicKeyFingerprint('sha256');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment