it was an actual dish that is popular in china and not spoiled food. traditionally it's fermented.
The safest methods simply marinate tofu in fermented amaranth; the tofu itself isn't aged. But there's many approaches to it with and without questionable safety practices. I'm not sure comparisons to blue cheese or koji-fermented products are appropriate.