It's hard to say if the hacks/codes you found are real, if you don't point us towards your finds
. That being said, there are plenty of legit codes and hacks out there for many of the released Dreamcast games.
It's not illegal to apply patches/hacks to your Dreamcast games as well using special codes.