The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Encrypt and Decrypt script shary Shell Programming and Scripting 9 12-11-2007 08:11 AM
Decrypt Des file - then encrypt frustrated1 SUN Solaris 0 09-07-2006 05:38 PM
encrypt and decrypt password sanwish Shell Programming and Scripting 2 07-14-2006 01:59 PM
Encrypt & Decrypt a String aldowsary Shell Programming and Scripting 6 05-15-2005 06:32 PM
How to decrypt a file encrypted with vi? Gerry UNIX for Dummies Questions & Answers 1 04-22-2001 02:44 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-13-2007
laknar laknar is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 55
How to encrypt and decrypt a file

How to encrypt and decrypt a file using unix Command?

Can any one help me?
  #2 (permalink)  
Old 07-13-2007
Nick31 Nick31 is offline
Registered User
  
 

Join Date: May 2007
Posts: 8
Quote:
Originally Posted by laknar View Post
How to encrypt and decrypt a file using unix Command?

Can any one help me?
How secure do you need it to be? Here's a thread about using the crypt command, but the security on that isn't very good; a modern computer can break the cypher if given the time. There are various freeware programs out there that will do a pretty good job of encrypting files. I haven't used any lately but mcrypt and ccrypt both have decent reputations as far as I know. PGP is a well known commercial solution, and there's the GnuPG or OpenPG alternative. http://www.gnupg.org/ Hope this helps.
  #3 (permalink)  
Old 12-11-2007
Vicky Narayan Vicky Narayan is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 21
Hi dere,

There is commad in Unix "crypt"...U can use dis functionality....First of all u ll have to compress the file...

% compress myfile
% ls -l myfile.Z
% dd if=myfile.Z of=myfile.Z.strip bs=3 skip=1
% crypt akey < myfile.Z.strip

For Decryption:
% (compress -cf /dev/null;crypt < myfile.Z.strip) | uncompress -c > myfile

Just check out the above code snippet.....
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0