src/Primitive/Support/Traits/StringCheckerTrait.php
public function isEncryptedString($encrypted, $key)
    {
        try
        {
            $data = JWT::decode($encrypted, $key);
        }
        catch(Exception $e)
        {
            return false;
        }

        return is_string($data->string);
    }
public function isEncryptedString($encrypted, $key)
    {
        try
        {
            $data = JWT::decode($encrypted, $key);
        }
        catch(Exception $e)
        {
            return false;
        }

        return is_string($data->string);
    }
Check if string is encrypted String

@param string $encrypted
@param string $key
@return bool