You can remember the meaning of 秘密 with this easy mnemonic:
I am very good at keeping secrets (秘). Have I ever told you anyone's secrets (密) before? No, right? I'm like a security vault for secrets.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.