[Ilugc] .a-tip-a-day. (openssl - do simple crypto and related operations)

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Fri Sep 25 07:45:45 2009

$ openssl sha1 /etc/passwd
SHA1(/etc/passwd)= 7bd2fab8b900ea3255d95a190ceabb35e839b18e

This prints the SHA1 sum I wrote about few days ago.

$ openssl md5 /etc/passwd
MD5(/etc/passwd)= 4e85dafb634ceb6afc3acbf2e1050151

$openssl help

Standard commands
asn1parse      ca             ciphers        crl            crl2pkcs7
dgst           dh             dhparam        dsa            dsaparam
ec             ecparam        enc            engine         errstr
gendh          gendsa         genrsa         nseq           ocsp
passwd         pkcs12         pkcs7          pkcs8          prime
rand           req            rsa            rsautl         s_client
s_server       s_time         sess_id        smime          speed
spkac          verify         version        x509


You can invoke several commands for creating public keypairs, prime
numbers, random
data, base64 encoding and so on.

You also create SSL self signed certificate and private key using this utility.

$ openssl rand -out randdata.bin 2048

will generate random data of size 2048 bytes.

Several possibilities are there. You can encrypt files, decrypt them ,
use salt, you can do a
whole bunch of stuff.

If you simply enter openssl you can enter these commands within the
openssl shell interface.

-Girish
-- 

Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com

Other related posts:

  • » [Ilugc] .a-tip-a-day. (openssl - do simple crypto and related operations) - Girish Venkatachalam