Create file with password

Is there any inbuilt way to create file with password and opening that file with password in the app only but it should be visible in my storage