How to create in linux a password protected file so it ask for the password every time the user wants to open it in linux or windows computers.
This process must be done in linux command line but the files could be open in linux or windows computers so the protection must run in both O.S.
EDIT for Ramhound
I tried this:
7za a -tzip -pPASSWORD -mem=AES256 file.zip file.txt
This is a CROSS-PLATFORM way while the file could be unzip in any O.S.
But I must not use a compression way.
vim +x file.txt
This encrypts but only ask for the password when I open it with vim not with notepad(sorry if this is fool but I'm putting my attempts)
gpg -c file.txt
This creates a new file with '.gpg' extension but, such as zip, for this I need a specific SW