1832587 Members
3032 Online
110043 Solutions
New Discussion

Re: date cipher

 
SOLVED
Go to solution
Yarek
Regular Advisor

date cipher

Hello Masters!

I'm looking for a tool which can compress some data with password.
The tool should be integrated part of OS.

Any advice?

Thanks in advance

5 REPLIES 5
spex
Honored Contributor
Solution

Re: date cipher

Archive and compress your files using the utility apps of your choice (e.g. 'tar', 'gzip', 'compress', 'bzip2'). Then run the resulting file through 'crypt'.

$ crypt password < infile.tar.gz > outfile.tar.gz

Decrypt by reversing the order of infile and outfile in the above command.

PCS

Re: date cipher

Not particulary secure, but:

crypt < myfile | gzip > myfile.crypt.gz

will do it (you'll be prompted for a key)

uncrypt using

gzcat myfile.crypt.gz | crypt > myfile

Heed the warning about the level of security provided by crypt in the man page:

crypt implements a one-rotor machine designed along the lines of the
German Enigma, but with a 256-element rotor. Methods of attack on
such machines are widely known; thus crypt provides minimal security.


HTH

Duncan

I am an HPE Employee
Accept or Kudo
Franky_1
Respected Contributor

Re: date cipher

Hi Yarek,

you can compress files with "tar" or "gzip" and then seal it with "crypt" command

This should do it

Regards

Franky
Don't worry be happy
Yarek
Regular Advisor

Re: date cipher

Thank you Masters!
Franky_1
Respected Contributor

Re: date cipher

Hi Yarek,

don't forget to assign points

Regards

Franky
Don't worry be happy