LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2009, 02:09 AM   #1
pramod.srk
Member
 
Registered: Feb 2009
Posts: 47

Rep: Reputation: 15
how to install encrypt in RHEL 5


Dear All,
We are migrating an application from UNIX to RHEL 5.
We found one of the code snippet uses encrypt command.
It looks like this
$exec_command = "/usr/local/bin/encrypt";
By this it seems that is either installed through some tar or rpm files.
Can you please help me to install encrypt.
 
Old 04-20-2009, 07:02 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
I do not think the encrypt command exists for Linux, i may be wrong you may have to port that functionality to openssl or gpg
 
Old 04-20-2009, 08:18 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by pramod.srk View Post
Dear All,
We are migrating an application from UNIX to RHEL 5.
We found one of the code snippet uses encrypt command.
It looks like this
$exec_command = "/usr/local/bin/encrypt";
By this it seems that is either installed through some tar or rpm files.
Can you please help me to install encrypt.
A quick Google search turns up the Encrypt for Linux web site:

https://albinoloverats.net/encrypt

You can download either the source or an RPM there.
 
Old 04-20-2009, 08:24 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
I think the user was thinking of the linux version of the unix command encrypt http://docs.sun.com/app/docs/doc/819...crypt-1?a=view The application link provided is not a linux port of the unix command. It may not have the same switches as the unix command.
 
Old 04-21-2009, 01:15 AM   #5
pramod.srk
Member
 
Registered: Feb 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks for reply.
In one of our environment (LINUX) i found encrypt was installed as a perl file.

The contents of the file looks like this:
#!/usr/bin/perl -w

while (<>) {
tr/!"#\$%&'\(\)\*\+,-\.\/0123456789:;<=>\?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\[\\\]\^_`abcdefghijklmnopqrstuvwxyz\{\|\}~/z\{,Yh\\kL:gDw&Fip7Ua9\/d\|yfb0\[@HvWr~\+N\*\?o'J\}VPxSQeZtCn4=m5`2\.8Bl1%R^OqT#"G\)M3_>I\-;\$EuXK6sc<A\(j!\]/;
print;
}

Can you please throw some light on this.
 
Old 04-21-2009, 02:25 AM   #6
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
That is simply a substitution of the input with different values using the perl tr function. I have not worked out the whole regex but that is the basic functionality.
 
Old 04-21-2009, 04:23 AM   #7
pramod.srk
Member
 
Registered: Feb 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Yes , it is just translating the input to some format described.
I will be using this to my application, will test.
Might be it will be helpful.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
encrypt and decrypt using encrypt(char block[64], int edflag) rockwell_001 Linux - Security 3 08-30-2009 09:16 AM
Install dmidecode and procinfo in RHEL 4 - RHEL 3 rafanto Red Hat 11 06-23-2009 06:23 AM
Installed Fedora 9 over RHEL it overwrote RHEL. How to install both?? obe786 Linux - Newbie 2 01-29-2009 07:52 AM
RHEL 5.2 Client Install w/Virtualization works: non-Virtualized install does not rkmason Red Hat 1 06-04-2008 10:05 AM
Install GNOME RPM after minimum RHEL install linuxhead Linux - Newbie 4 02-23-2007 03:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration