Windows XP does not natively have this feature.
You could use Winzip or WinRAR, for example, to compress and require a password for a file or folder.
In addition, many software programs that you might use to create a file offer password-based encryption. For example, files created by any member of the Microsoft Office suite offer this feature.
____________________________
Users Helping Users