cancel
Showing results for 
Search instead for 
Did you mean: 

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
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

Steven Schweda
Honored Contributor

Re: cryptage problem

> 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.

Still true.

As I said, it worked for me. I still don't
know exactly what you did, or exactly what
happened when you did it. "[I]t doesn't
work" is not a useful problem description.
You've provided no useful information to
work with. How do you expect anyone to guess
where the problem lies?
Laurent Menase
Honored Contributor

Re: cryptage problem

you should compare a cksum and size of all versions of the files taken at every steps.
cksum at step 2.5 and 3.5
and
cksum at 1.5 and 4.5

Then you will know if the file differ after transfert if 2.5 and 3.5 are different
or if it is crypt if 1.5 and 4.5 defers


Laurent Menase
Honored Contributor

Re: cryptage problem

you may also get the crypted file back to sun server and try the decrypt and uncompress there.

Also is the size of the file larger than 2G?

then try cryp thefileuncrypted