I'll even link them for you:
The veil of ignorance says you should design morals for a society as if you don't know which position you'll be in in that society. If you want to know if it's moral to feed people to crocodiles, imagine that your mind and soul is placed into a random body in the world where people are fed to crocodiles. You might be feeding someone to a crocodile, you might be fed to a crocodile, and in some versions you might be the crocodile. If you had the choice to live in that world but you don't know which one you'll be, would you take it? If you wouldn't because the chance feels bad to you, that's a sign it's objectively immoral.
Categorical imperative: follow rules that you'd be okay with everyone following all the time. Suppose you're very hungry and you see a supermarket and you steal a loaf of bread. Is this moral? "Everyone should steal food" quickly breaks down commerce and isn't good. "Very hungry people with no money should steal bread" works well enough because most people aren't very hungry with no money. We can say it's moral for very hungry people with no money to steal bread. "Very hungry people with no money should just die" works too, but it fails the other principle: that could be you who dies, and you'd rather be allowed to steal bread to prevent death.
These might be different versions of the same principle but I'm not philosophically savvy enough to know that so I'm stating both.