Airship\Engine\Security\AirBrake::getLogPublicKey PHP Method

getLogPublicKey() public method

Get the EncryptionPublicKey used for encrypting password guesses to give admins insight into the type of attack being launched.
public getLogPublicKey ( string $publicKey = '' ) : EncryptionPublicKey
$publicKey string Hex-encoded public key
return EncryptionPublicKey
    public function getLogPublicKey(string $publicKey = '') : EncryptionPublicKey
    {
        if (!$publicKey) {
            $publicKey = $this->config['log-public-key'] ?? null;
            if (!$publicKey) {
                throw new SecurityAlert(\__('Encryption public key not configured.'));
            }
        }
        return new EncryptionPublicKey(\Sodium\hex2bin($publicKey));
    }