HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - How to encrypt & compress data in HP-UX and decryp...
 
Operating System - HP-UX
        1840213
        Members
    
    
        3326
        Online
    
    
        110162
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
 - Appliance Servers
 - Alpha Servers
 - BackOffice Products
 - Internet Products
 - HPE 9000 and HPE e3000 Servers
 - Networking
 - Netservers
 - Secure OS Software for Linux
 - Server Management (Insight Manager 7)
 - Windows Server 2003
 - Operating System - Tru64 Unix
 - ProLiant Deployment and Provisioning
 - Linux-Based Community / Regional
 - Microsoft System Center Integration
 
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
	
		
			
            
                
            Go to solution
        
            
		
		
			
            	
	
		
        
		
	
	
		Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
 - Mark Topic as New
 - Mark Topic as Read
 - Float this Topic for Current User
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-29-2004 09:37 PM
06-29-2004 09:37 PM
			
				
					
					
						How to encrypt & compress a whole directory data in UNIX and decrypt & uncompressed them in DOS? (p.s. If possible, it will be better to do uncompression by winzip.)
The following way can be done in UNIX:
# cd /tmp
# tar cvf tar.bk /home/test1
# compress -c tar.bk | crypt > tar.sec
However, the compressed & encrypted file "tar.sec" can't be processed in DOS.
Does anyone has idea?
I originally want to use "gzip" in HP-UX but "gzip" seemingly does not have encrypt function. Please advise.
	
			
				
		
			
			
			
			
			
			
		
		
		
	
	
	
The following way can be done in UNIX:
# cd /tmp
# tar cvf tar.bk /home/test1
# compress -c tar.bk | crypt > tar.sec
However, the compressed & encrypted file "tar.sec" can't be processed in DOS.
Does anyone has idea?
I originally want to use "gzip" in HP-UX but "gzip" seemingly does not have encrypt function. Please advise.
	測試
			
			
				Solved! Go to Solution.
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-29-2004 10:02 PM
06-29-2004 10:02 PM
			
				
					
						
							Re: How to encrypt & compress data in HP-UX and decrypt & uncompressed them in DOS?
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						I don't think there is some tool which can encrupt & compress and also works on DOS & UNIX.
sks
		
		
	
	
	
sks
	A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
			
			
				
			
			
			
			
			
			
		- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-29-2004 10:09 PM
06-29-2004 10:09 PM
Solution
			
				
					
					
						Hi,
i dont't know it this will meet your needs, but there is a ZIP available for HP-UX which offers an option -e for encyption. Here the extract from the man page:
-e Encrypt the contents of the zip archive using a password which is
entered on the terminal in response to a prompt (this will not be
echoed; if standard error is not a tty, zip will exit with an
error). The password prompt is repeated to save the user from
typing errors.
This zip is compatibal with PKZip so you can use your favorite ZIP programm on DOS/Windows to extract the data.
Have a look at the porting center eg. at http://hpux.asknet.de
Hope this helps
Regards Stefan
					
				
			
			
				
		
		
	
	
	
i dont't know it this will meet your needs, but there is a ZIP available for HP-UX which offers an option -e for encyption. Here the extract from the man page:
-e Encrypt the contents of the zip archive using a password which is
entered on the terminal in response to a prompt (this will not be
echoed; if standard error is not a tty, zip will exit with an
error). The password prompt is repeated to save the user from
typing errors.
This zip is compatibal with PKZip so you can use your favorite ZIP programm on DOS/Windows to extract the data.
Have a look at the porting center eg. at http://hpux.asknet.de
Hope this helps
Regards Stefan
	No Mouse found. System halted. Press Mousebutton to continue.
			
			
				
			
			
			
			
			
			
		- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-30-2004 01:40 PM
06-30-2004 01:40 PM
			
				
					
						
							Re: How to encrypt & compress data in HP-UX and decrypt & uncompressed them in DOS?
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi Stefan,
I have download zip-2.3 from utah website and test ok:
# cd /home/test1
# zip -e -r - . > /tmp/bk.zip
The output file "bk.zip" really can be extracted by winzip and winzip also responses to a prompt for password input.
Thanks again for your help.
		
		
	
	
	
I have download zip-2.3 from utah website and test ok:
# cd /home/test1
# zip -e -r - . > /tmp/bk.zip
The output file "bk.zip" really can be extracted by winzip and winzip also responses to a prompt for password input.
Thanks again for your help.
	測試
			
			
				
			
			
			
			
			
			
		The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP