Only Sonic and the people he trusts enough to tell know the code to his safe. It is not publicly confirmed.