1748169 Members
3951 Online
108758 Solutions
New Discussion юеВ

Re: cryptage problem

 
semmar_1
Occasional Contributor

cryptage problem

hello all
we have a sun solaris unix machine
we do
1 compress file
2 crypt key
3 transfer the file crypted to an HP8400 hpux 11.11
4 decrypt the file with the same command and same key (crypt and K120 key )
5 uncompress the file an error occure
the file is not in a compressed file
please help me
semmar
12 REPLIES 12
Steven Schweda
Honored Contributor

Re: cryptage problem

> 3 transfer the file crypted to an HP8400
> hpux 11.11

Transfer how?

Do decrypt and uncompress work on the Solaris
system if you don't "transfer the file"?
Ganesan R
Honored Contributor

Re: cryptage problem

Hi Semmar,

After decrypt the file on HP-UX, what is the output this command?

#file

Best wishes,

Ganesh.
semmar_1
Occasional Contributor

Re: cryptage problem

hello
1 transfer the file with ftp
2 I decrypt the file with the command crypt and the result is a file.Z the file compressed before .
thanks
semmar
Steven Schweda
Honored Contributor

Re: cryptage problem

> 1 transfer the file with ftp

ASCII? Binary? Actual commands?

> 2 I decrypt the file with the command crypt
> and the result is a file.Z the file
> compressed before .

Does that answer anyone's question(s)?
semmar_1
Occasional Contributor

Re: cryptage problem

hello
ftp was in binary mode
semmar
Dennis Handly
Acclaimed Contributor

Re: crypt problem

I assume this also fails if you skip the compress steps?

You might want to see if cksum and crypt produce the same outputs on the same inputs.

First pick a file, copy in binary to the other machine and use cksum on the original and the crypt versions. If they don't match, then that's the problem.

(Any reason you use compress vs gzip?)

Steven Schweda
Honored Contributor

Re: cryptage problem

> Do decrypt and uncompress work on the Solaris
> system if you don't "transfer the file"?

Still wondering about that.

Or, if you transfer it to the HP-UX system,
and then transfer it back?

> please help me

You first.
Steven Schweda
Honored Contributor

Re: cryptage problem

By the way, this works fine for me between:

sol# uname -a
SunOS sol 5.10 Generic_127127-11 sun4u sparc SUNW,Ultra-60

and:

dy # uname -a
HP-UX dy B.11.11 U 9000/785 2012616114 unlimited-user license

> we do
> [...]

Perhaps it would be useful to show _exactly_
what you do instead of providing only a vague
description of what you do. "ls -l" before
and after might be interesting, too.

> the file is not in a compressed file

I'd bet that the actual message looks more
like:

: not in compressed format

This inaccuracy, and the fact that it works
for me, lead me to doubt the accuracy of the
rest of your (vague) description of what you
did.
semmar_1
Occasional Contributor

Re: cryptage problem

helo

yes the decrypt and uncompress work on the Solaris system when we do transfer from solaris to solaris server.

when we do it from solaris to the HP-UX system it doesn't work
semmar