How to generate app-specific passwords

Typing your iCloud credentials into apps is a big no-no: you don’t want your primary Apple ID password to end up being collected or stored by apps you might use. Here’s how you can generate a special iCloud password that only works in a single app and doesn’t expose your Apple ID password.