src/KeyStore.php
protected function getIdentifier(\fpoirotte\Pssht\PublicKeyInterface $key)
    {
        $encoder = new \fpoirotte\Pssht\Wire\Encoder();
        $key->serialize($encoder);
        return $encoder->getBuffer()->get(0);
    }
protected function getIdentifier(\fpoirotte\Pssht\PublicKeyInterface $key)
    {
        $encoder = new \fpoirotte\Pssht\Wire\Encoder();
        $key->serialize($encoder);
        return $encoder->getBuffer()->get(0);
    }
protected function getIdentifier ( \ fpoirotte \ Pssht \ PublicKeyInterface $ key ) { $ encoder = new \ fpoirotte \ Pssht \ Wire \ Encoder ( ) ; $ key -> serialize ( $ encoder ) ; return $ encoder -> getBuffer ( ) -> get ( 0 ) ; }
Return the identifier for a key.

\param fpoirotte::Pssht::PublicKeyInterface $key
Public or private key.

\retval string
SSH identifier for the key.
Return the identifier for a key .