A code reported for unlocking Darth Vader is 74c0n4n28746n4.
Enter it through the game's cheat or bonus menu rather than at the title screen, which is where this title handles unlockables. Note that entering codes in this series typically disables achievement or trophy progress for that session, so finish anything you care about first.
As with any code circulating online, it may be inaccurate or specific to one platform. If it does not register, check the platform's own unlock requirements, since some characters are earned by completing particular challenges instead.