paragonie / EasyRSA

Simple and Secure Wrapper for phpseclib
https://paragonie.com
MIT License
197 stars 34 forks source link

Export public key #11

Closed AeonDave closed 5 years ago

AeonDave commented 7 years ago

Ok, everything works well. but how i can export the public key for an app?

$keyPair->getPublicKey(); is a protected object and his serialized version is too messy.

it will be nice if in the object will be implemented an export function like:

$objKey = $keyPair->getPublicKey();
return $objKey->export();

thanks

AeonDave commented 7 years ago

Nevermind i red the code and i found

public function getKey()
    {
        return $this->keyMaterial;
    }

please add this in the docu!

Thanks