HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

File compression and encryption

 
vinod_25
Valued Contributor

File compression and encryption

Hi Techies,

I am looking for a file compression and encryption Unix native command.

Also let me know the maximum file limit that can be compressed and encrypted.

I know there are third-party softwares like PGP which can do my job but need only unix native commands or scripts

Thanks

Vinod
6 REPLIES
Ganesan R
Honored Contributor

Re: File compression and encryption

Hi Vinod,

For compression you can use compress and gzip commands.

Secure shell is using it's own encryption mechanism to transfer the files like PGP.
Best wishes,

Ganesh.

Re: File compression and encryption

>let me know the maximum file limit that can be compressed

compress(1) will handle any size. gzip that comes with HP-UX will not handle more than 2 Gb unless you use a cat(1) pipe.
Ganesan R
Honored Contributor

Re: File compression and encryption

Hi,

Use crypt command if you wish to stick with unix native command. syntax are below.

For encrytion.

#crypt filename.x
Key:xxxxxx

For decryption.
#crypt Key:xxxxxx

To open a encrypted file in vi
#vi -x filename.x
Key:xxxxxx

Best wishes,

Ganesh.
VK2COT
Honored Contributor

Re: File compression and encryption

Hello,

You already got the basic information.
Note that Unix crypt is relatively weak.

One of the improvements is ccrypt.
It was designed as a replacement for the standard Unix crypt utility.

ccrypt is based on the Rijndael cipher, which is the U.S. government's chosen candidate for the Advanced Encryption Standard:

http://ccrypt.sourceforge.net/

Of course, there are many more choices.

If you use HP-UX 11.31, you could
even set up an Encrypted File System (EVFS).
I recently taught the updated course
H3541S (HP-UX Security) where EVFS is
part of the labs and one of the modules...

Cheers,

VK2COT
VK2COT - Dusan Baljevic
vinod_25
Valued Contributor

Re: File compression and encryption

Thanks everyone !!!

Glad to have quick response

Cheers !!

Vinod

Re: File compression and encryption

>Thanks everyone !!!

If you are happy with the answers you were given please read the following about reopening threads and assigning points:
http://forums.itrc.hp.com/service/forums/helptips.do?#41
http://forums.itrc.hp.com/service/forums/helptips.do?#33