private getModulus ( resource $keyResource ) : string | ||
$keyResource | resource | The key resource |
리턴 | string | The HEX public modulus string |
private function getModulus($keyResource)
{
$keyDetails = openssl_pkey_get_details($keyResource);
return strtoupper(bin2hex($keyDetails['rsa']['n']));
}