Super Sonic is unlocked by collecting all seven Chaos Emeralds, which is the standard requirement across the classic games.
Hyper Shadow, on the other hand, does not exist as a playable form in the official titles — he is a fan invention. So there is nothing to unlock there, however often the name turns up in forums.