RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Simple file Encryption and Decryption using encryption key

Question:

Is there a easy way to encrypt and decrypt a file on a Ubuntu Linux system?

Answer:

If you are looking for a simple way to encrypt and decrypt files your should consider to use ccrypt. Use a following command to install ccrypt on a Ubuntu Linux system:

# apt-get install ccrypt

When ready you can use ccrypt to encrypt any file. Example:

$ ccrypt to-encrypt.txt 
Enter encryption key: 
Enter encryption key: (repeat) 
$ ls to-encrypt.txt.cpt 
to-encrypt.txt.cpt

In the above example we have encrypted a file to-encrypt.txt. Output of this operation is file to-encrypt.txt.cpt. To decrypt this file we need to use ccdecrypt and encryption key we used to encrypt it:

$ ccdecrypt to-encrypt.txt.cpt
Enter decryption key:

Linux questions and answers

Share this linux post:

Submit Simple file Encryption and Decryption using encryption key in Delicious Submit Simple file Encryption and Decryption using encryption key in Digg Submit Simple file Encryption and Decryption using encryption key in FaceBook Submit Simple file Encryption and Decryption using encryption key in Google Bookmarks Submit Simple file Encryption and Decryption using encryption key in Stumbleupon Submit Simple file Encryption and Decryption using encryption key in Technorati Submit Simple file Encryption and Decryption using encryption key in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download