linux poison RSS
linux poison Email

Encrypt-Decrypt files using mcrypt on OpenSuse

MCrypt is a replacement for the old crypt() package and crypt(1) command, with extensions. It allows developers to use a wide range of encryption functions, without making drastic changes to their code. It allows users to encrypt files or data streams without having to be cryptographers. Above all, it allows you to have some really neat code on your machine. :)

The companion to MCrypt is Libmcrypt, which contains the actual encryption functions themselves, and provides a standardized mechanism for accessing them.

Installation:
Go to Yast -- Software Management and search for "mycrypt" and select the pacakage and install it using yast


Examples of mcrypt usage in a linux command line environment:

See available encryption algorithms
mcrypt --list                      

Encrypts myfilename to myfilename.nc using blowfish encryption algorithm, you are prompted 2x for passphrase
mcrypt -a blowfish myfilename       

Decrypts mytextfile.txt.nc to mytextfile.txt
mcrypt -d mytextfile.txt.nc         

For Other options 
mcrypt --help

It implements numerous cryptographic algorithms, mostly block ciphers and stream ciphers, some of which falls under export restrictions in the United States. Algorithms include des, blowfish, arcfour, enigma, ghost, loki97, rc2, serpent, threeway, twofish, wake, xtea


1 comments:

Anonymous said...

Short and sweet

Post a Comment

Related Posts with Thumbnails