09-02-2008
Reading HP-UX crypt file on LINUX REHL 4
Hi,
I have a process that creates a file on a HP-UX server (11.11) using the HP-UX Command crypt.
This gets transfred to a LINUX server (REHL 4u4 AP) where crypt is not installed.
I have been trying to use the standard supplied "gpg" utility to decrypt the file but no sucess!.
Any help/ideas would be good.
FYI.
Crypt creation on HP-UX
echo "test is a test" | crypt 123 >filename.crypt
File is transefred to LINUX
Who do I read it once there?
Many thanks in advance.
9 More Discussions You Might Find Interesting
1. Programming
How to use the crypt function in c++.Itgives error as "Undefined reference to crypt".help me soon plzzzzzzzzz... (1 Reply)
Discussion started by: dhanas
1 Replies
2. UNIX for Dummies Questions & Answers
Hi..
I need to decrypt a file in Solaris.
I'm giving command as
crypt decrypt_key filename.locked filename.unlocked
where
decrypt_key is the key key for decrypting the file.
filename.locked is the file thats encrypted and I need to de-crypt
filename.unlocked is the new file that I need
... (1 Reply)
Discussion started by: livetaurean19
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
I will crypt a file, which requires password to open it in HP-UX. Please let me know the equivalent command in AIX 5.
Your co-operation is highly appreciated in this regard!
-Thiagu (2 Replies)
Discussion started by: thiagoo
2 Replies
4. AIX
Will AIX support crypt command or elase is there any command which is similar to crypt on AIX? (2 Replies)
Discussion started by: kalpana.anuga
2 Replies
5. Shell Programming and Scripting
Hi all,
I want the source code similar to crypt command in unix.
Thanks for the reply (4 Replies)
Discussion started by: ratna
4 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Completely new to Unix - trying to decrypt a Crypt() password, I'm looking for a DES based software that can run on windows...anyone know of a link / online tool that can help me?
Much appreciated
reppir (0 Replies)
Discussion started by: reppir
0 Replies
7. Red Hat
Hi All,
Is there anyone facing a problem installing PHP 4 at Red hat Enterprise 5?
I paid for the red hat update subscription and when i look at the website it seems PHP4 is only for Red Hat enterprise 4.
My web server only can use PHP 4 and i cant use PHP 5.
Am i going to have an issue... (0 Replies)
Discussion started by: c00kie88
0 Replies
8. Red Hat
Hi
I wish to encrypt some files in Linux Redhat server using DES and Encrpt functions but I am not able to find such fncs in Linux.
Please help. (0 Replies)
Discussion started by: kapilk
0 Replies
9. UNIX for Dummies Questions & Answers
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (1 Reply)
Discussion started by: sravanreddy
1 Replies
LEARN ABOUT OPENSOLARIS
crypt
crypt(1) User Commands crypt(1)
NAME
crypt - encode or decode a file
SYNOPSIS
crypt [password]
DESCRIPTION
The crypt utility encrypts and decrypts the contents of a file. crypt reads from the standard input and writes on the standard output. The
password is a key that selects a particular transformation. If no password is given, crypt demands a key from the terminal and turns off
printing while the key is being typed in. crypt encrypts and decrypts with the same key:
example% crypt key < clear.file > encrypted.file
example% crypt key < encrypted.file | pr
prints the contents of clear.file.
Files encrypted by crypt are compatible with those treated by the editors ed(1), ex(1), and vi(1) in encryption mode.
The security of encrypted files depends on three factors: the fundamental method must be hard to solve; direct search of the key space
must be infeasible; "sneak paths" by which keys or cleartext can become visible must be minimized.
crypt implements a one-rotor machine designed along the lines of the German Enigma, but with a 256-element rotor. Methods of attack on
such machines are widely known, thus crypt provides minimal security.
The transformation of a key into the internal settings of the machine is deliberately designed to be expensive, that is, to take a substan-
tial fraction of a second to compute. However, if keys are restricted to (say) three lower-case letters, then encrypted files can be read
by expending only a substantial fraction of five minutes of machine time.
Since the key is an argument to the crypt command, it is potentially visible to users executing ps(1) or a derivative command. To minimize
this possibility, crypt takes care to destroy any record of the key immediately upon entry. No doubt the choice of keys and key security
are the most vulnerable aspect of crypt.
FILES
/dev/tty for typed key
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
des(1), ed(1), ex(1), ps(1), vi(1), attributes(5)
SunOS 5.11 8 Mar 2005 crypt(1)