how to create folder with password

hey all i am trying to create a app which works as locker i have ready in many sites how to decrypt and encrypt images videos and other files i thought instead of encrypting single file why don’t we encrypt or set password to our folder where we store files

Is there a possibility to implement that