I would like to know if it is possible to protect a file with a password, for example before you can less, or more to a file it will ask you a password before it will give access to the file. tnx
You can use dd to create a fake partition and use cryptsetup to encrypt the false partition. If you store files within the partition then they can only be accessed after you successfully mount the partition and use the correct password.
Rather than encrypting single files I store all of my sensitive files in a single encrypted false-partition so that all files are centrally located and accessible with a single password.
I would suggest looking into it if you need to protect multiple files.
i am doing it because im gonna bind my different files using windows "Google file binding binary mode" , then transfer the file in my ubuntu box then edit it and put a password. if anyone will look my file they will say it is only a regular large file but they do not know that some files are bonded. ^__^
Comments
vi test1 --> after this command the system will ask me a password.
the file is a normal file not a directoy.
if it is possible in linux? if not in ubuntu any distro?
the post is on[url] http://www.commandlinefu.com/commands/view/2100/add-password-protection-to-a-file-your-editing-in-vim.[/url]
:woohoo: :woohoo: :woohoo: :woohoo:
:unsure:
I would recommend installing vim ( vi improved) which has the encryption capabilities, vi is still basic and does not have the same functionality.
tnx a lot
then it asks for the file password that I want to use.
I am installing ubuntu 9.04 as a virtual now to test it.
nice
i installed vim :
sudo apt-get install vim
then after that:
vim -x test
enter encryption keys:
yehey!!! problem solve.....
Rather than encrypting single files I store all of my sensitive files in a single encrypted false-partition so that all files are centrally located and accessible with a single password.
I would suggest looking into it if you need to protect multiple files.
i am doing it because im gonna bind my different files using windows "Google file binding binary mode" , then transfer the file in my ubuntu box then edit it and put a password. if anyone will look my file they will say it is only a regular large file but they do not know that some files are bonded. ^__^