I'm not sure about in a folder, but you can open up disk utility and go to file>new>blank disk image. From there you can specify how large you want the disk image to be, then select which encryption you want on it and then select a password. You can mount this image and it will act like a folder and you can fill it up to the amount you specified. I hope this helps.