#!/usr/bin/env bash

# SUMMARY Solaris 8 crypt command source
# Bob Cregan bob.cregan at maths.bath.ac.uk 
# Tue Sep 16 06:32:10 EDT 2003 

# Previous message: Another RAID question 
# Next message: SUMMARY: automate tasks with telnet or somthg. similar 
# Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] 

# --------------------------------------------------------------------------------

# Hi everyone,
#              There is a linux replacement for crypt called mcrypt. It 
# includes all Solaris crypt functionality plus lots more.

# It is at

# ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/

# it requires mhash and libmcrypt libraries to compile (the libmcrypt 
# libraries are also available at the above site). Once compiled the command

# mcrypt -a enigma -o scrypt --bare XF86Config.txt

# produces a file indistinguishable from a file produced by solaris crypt and

# mcrypt -d -a enigma -o scrypt --bare XF86Config.txt.nc

# will decript a file produced by solaris crypt.


# Bob


# Based on the above, rig@cs.luc.edu has created this script as a crypt emulation 6/26/2006.

if ((${#*})); then
  mcrypt -d -a enigma -o scrypt --bare -k $1
else
  mcrypt -d -a enigma -o scrypt --bare
fi
