Ok this works - but it's not exactly elegant, still would like to know if it's built in if anybody knows. Don't worry, I'll be onto mycrpt next week - I'm working may way through, like
function encrypt_strength($key)
{
$testdata="frog fire";
$keyRes=openssl_pkey_get_private($key);
if( !$keyRes )
{
$keyRes=openssl_pkey_get_public($key);
if( !$keyRes )
{
return 0;
}
}
openssl_public_encrypt($testdata, $encrypted, $keyRes) OR die("DEATH: enc_strength - NO PUBLIC ENCRYPTION");
openssl_free_key($keyRes);
return strlen($encrypted)*8;
}