You can password protect a PDF on a Mac computer using the Preview app to secure files that contain sensitive information.
You can make private album on an iPhone to hide your photos securely, but only with a third-party app like Photo Vault.