crypt utility | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

crypt utility

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-10-2011
luft luft is offline
Registered User
 
Join Date: Mar 2005
Last Activity: 3 January 2013, 9:34 AM EST
Posts: 76
Thanks: 12
Thanked 0 Times in 0 Posts
crypt utility

Hello all,

I'm currently on HP-UX and will be moveing shortly to Red Hat Linux. Is there a crypt or an equivalent utitlity on RHEL?

Thanks
Sponsored Links
    #2  
Old 11-10-2011
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 25 October 2014, 4:18 AM EDT
Location: NM
Posts: 10,251
Thanks: 283
Thanked 803 Times in 747 Posts
Yes. But the exact implementation will vary from HP-UX for sure. In other words, your encrypted files coming over from HP-UX won't be decryptable, necessarily.

There is a standard POSIX call, crypt() in unistd.h. But I would never bet the rent money on being able to unencrypt something from another OS. HP-UX and Linux both support it.
The Following User Says Thank You to jim mcnamara For This Useful Post:
luft (11-10-2011)
Sponsored Links
    #3  
Old 11-10-2011
luft luft is offline
Registered User
 
Join Date: Mar 2005
Last Activity: 3 January 2013, 9:34 AM EST
Posts: 76
Thanks: 12
Thanked 0 Times in 0 Posts
Thanks Jim..I'm not planning on taking an encrypted file from HP-UX and decrypt it on Linux. We currently have a nightly job that encrypts some flat files in HP-UX environment. When we move to Linux I just want to make sure that the job runs fine in the new environment..I guess I need to modify the script to call the Linux encrypt function..Would you by any chance have the syntax or some code samples. I don't have access to the Linux machine yet and I'm not able to play around with it yet..

Thanks
    #4  
Old 11-10-2011
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 25 October 2014, 1:14 AM EDT
Location: /dev/ph
Posts: 4,823
Thanks: 64
Thanked 431 Times in 399 Posts
Are you talking about a shell script or a program written in C? In your first post you talk about a crypt utility; in the previous post you talk about an encrypt function.

If you are talking about an equivalent to the HP-UX crypt utility on RHEL, check out the mcrypt utility. The manpage for mcrypt is readily available on the Internet.
Sponsored Links
    #5  
Old 11-14-2011
luft luft is offline
Registered User
 
Join Date: Mar 2005
Last Activity: 3 January 2013, 9:34 AM EST
Posts: 76
Thanks: 12
Thanked 0 Times in 0 Posts
One of our shell scripts call crypt utility on HP-UX. Once we migrate to Linux we need to make sure that the shell script works. Let me look at the mcrypt utility that you suggested. Thanks for your response.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
I need help with Crypt() reppir UNIX for Dummies Questions & Answers 0 11-03-2008 03:29 PM
Crypt command kalpana.anuga AIX 2 02-22-2007 03:45 PM
HP-UX crypt, need to do in AIX 5 thiagoo UNIX for Advanced & Expert Users 2 10-11-2006 02:32 PM
I need to do crypt(as in HP-UX) in AIX 5 thiagoo AIX 1 10-10-2006 09:33 PM
Crypt How to?? dhanas Programming 1 12-20-2002 09:32 AM



All times are GMT -4. The time now is 01:29 PM.