Disk Utility will encrypt/decrypt folders. Take your text file and put in into a folder and launch Disk Utility. Select, Disk from Folder under File > New > Disk from Folder. You will be offered a couple of options. It will turn your Folder/file into an encrypted Disk Image.
Terry