3

I have encrypted a file on a Solaris server using the encrypt command, with a keyfile generated via pktool (choosing AES-128 as the algorithm). I do not have access to any other encryption utilities on this server. What application(s) could I use to decrypt this file on a more generic Linux server?

EDIT:

Here are the Solaris commands I used:

pktool genkey keystore=file outkey=testkeyfile.dat dir=mydir
keytype=aes keylen=128 encrypt -a aes -k mydir/testkeyfile.dat -i mydir/myfile -v -o mydir/myfile.enc

I also ran the following to check that the file was correctly encrypted:

decrypt -a aes -k mydir/testkeyfile.dat -i mydir/myfile.enc -v -o mydir/myfile2

I suspect mcrypt is probably the way to go here, but can anyone advise on the options that I'd need to use?

user3490
  • 620
  • 6
  • 14

3 Answers3

1

If the system tools are not compatible, you could use other cross-platform encrypters.

Some of the best-known tools are GnuPG and AES Crypt, available and compatible across almost all platforms.

harrymc
  • 498,455
1

What about using the openssl command? I'm almost positive it comes preinstalled on Solaris, possibly somewhere under /usr/sfw/?

Check the official openssl documentation here:

http://www.openssl.org/docs/apps/enc.html

Or someone else's useful guide:

http://www.madboa.com/geek/openssl/#encrypt-simple

0

I have a perl script that will decrypt files encrypted with Solaris' 'encrypt' command and with the arcfour algorithm. It works on linux.