A network security key is basically your Wi-Fi password — it's the encryption key that your password unlocks to allow access to the network.
To change your YouTube password, you'll need to change your Google account's password, as they're the same password.