Preheat oven to 350° F.
Blot excess water from tofu. Slice it into 3/4 inch slices and set aside.
For the dry rub, combine all ingredients in a small bowl and mix well with a fork. Set aside
For the barbeque sauce, chop and pureed the onion, garlic and red pepper in a food processor. Place them with the rest of the ingredientsin a small saucepan. Bring it to a simmer over medium heat and let cook for 5 minutes. Let cool slightly before using.
To make the bbq tofu: with your fingers coat both sides of the tofu with rub. Place onto a parchment or silicone sheet lined baking pan.
To apply sauce you can either brush both sides with a large pastry brush or you can gently, with both hands, dip both sides of the tofu into the sauce,and then wipe the excess on the side of the bowl.
When all the tofu slices are coated with sauce, place in oven.
Let bake for 50-65 minutes turning and recoating the tofu with sauce after 25 minutes. Start checking for doneness at 45 minutes. Tofu is done when you can pick up a piece and it doesn't fall apart and it has a slightly chewy but not tough texture.
Once tofu is cooked, remove from heat and serve immediately.