Remove excess moisture from the tofu and mash it well.
Melt the dark chocolate using a double boiler.
In a bowl, combine the mashed tofu, melted chocolate, cocoa powder, sugar, and vanilla extract. Mix well.
Pour the batter into a pan lined with parchment paper.
Bake in a preheated oven at 170°C (338°F) for 25 minutes.
Let it cool, then refrigerate for at least 2 hours to set.