LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to encrypt a file (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-encrypt-a-file-4175442653/)

ksaad 12-23-2012 04:27 AM

How to encrypt a file
 
Hi,

I used crypt command, the meassage is can not encript a file
then I did $ man crypt and it is there as a function
$ cat filename|crypt > filename.cpy --> does this works, I haven't tried.

it looks like crypt command is not working as an old verion of OSS.

lucmove 12-23-2012 08:27 AM

Why not use gpg instead?

$ gpg -c -o output-file input-file
[enter password]

Done.

konsolebox 12-23-2012 08:35 AM

Perhaps it won't encrypt a text file without a password. Not sure.

adampski 12-23-2012 12:34 PM

You want to encrypt a file without a PW?

http://www.youtube.com/watch?v=0pQ0ME_M4g8

You often need a key (password) for most encryption methods. Whether they're public or private.

NyteOwl 12-23-2012 01:21 PM

crypt is typically used to generate an encrypted (hashed) password, not to do file encryption. As suggested, check into gpg (GnuPG).

ksaad 12-25-2012 04:42 AM

how to encript a file
 
Hi,

I'll check gpg and let you know. Thanks

codergeek 12-25-2012 08:27 PM

I've used a program called ccrypt( not to be confused with crypt ) to encrypt files. That was then. Today, I use cryptsetup on a usb stick. All I do is insert the usb stick and a dialog box opens and prompts me for the passphrase. Then I just add the files I want to keep secured.


All times are GMT -5. The time now is 04:32 PM.