1840009 Members
2861 Online
110158 Solutions
New Discussion

file encryption ?

 
SOLVED
Go to solution
j773303
Super Advisor

file encryption ?

Doen anyone has the experience about HPUX file encryption? Is it possible when access a file, it is need deencryption the file then access it ?

Thanks,
Hero
11 REPLIES 11
RAC_1
Honored Contributor

Re: file encryption ?

Not something in built. If you have cutom program/app that you use, you can just encrypt using crypt command and decrypt it using same command.

man crypt for details.
There is no substitute to HARDWORK
Peter Godron
Honored Contributor
Solution

Re: file encryption ?

Hi,
you can use the -x option on vi to automatically en/de-crypt files.

vi -x a.lis will ask for a encryption key

write your data and exit

more a.lis will show encrypted file

vi -x a.lis will ask for decryption key and then show the text in clear.
j773303
Super Advisor

Re: file encryption ?

Once using vi -x to encrypt the file.
If formet the key, how to disable the vi() encryption file ?

another issue, does vi -x binary_file apply in BINARY file?

Thanks in advanced.
Hero
Peter Godron
Honored Contributor

Re: file encryption ?

Hi,
the point of cryptography is that the file can not be easily decoded. So if you forget your -x key, no easy way to recover file.
RAC_1
Honored Contributor

Re: file encryption ?

You can't edit binary files. Also, if you forget the key, you can not recover the file.
There is no substitute to HARDWORK
j773303
Super Advisor

Re: file encryption ?

vi :X , KEY press "RETURN'
it can be back the file to normal
Hero
j773303
Super Advisor

Re: file encryption ?

Is there any command to do the encryption/decryption for BINARY file ?

Thanks,
Hero
Bill Hassell
Honored Contributor

Re: file encryption ?

crypt does not care about the contents of a file. It will work on any file. NOTE: This is a pure filter, that is, it accepts no filenames for input or output, just the password. STDIN and STDOUT must be provided for in and out files. This demonstrates how it works:

cat /etc/fstab | crypt abcxyz > secure_file
cat -v securefile
cat securefile | crypt abcxyz

This encodes fstab, demonstrates that the new file is unreadable and then decrypts the file with the password abcxyz.


Bill Hassell, sysadmin
Dave Olker
Neighborhood Moderator

Re: file encryption ?

Hi,

If you're looking for encryption of data "at rest", meaning the data is encrypted on the disk and then decrypted when your application accesses it then this is what you're looking for:

http://h20338.www2.hp.com/hpux11i/cache/324629-0-0-0-121.html

Eric Roseme, from HP, will be discussing EVFS in great detail at HP Technology Forum 2006 in September. There will be general sessions and a demo of the product.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
j773303
Super Advisor

Re: file encryption ?

cat /etc/fstab | crypt abcxyz > secure_file
cat -v securefile
cat securefile | crypt abcxyz

for the above, if forgot the key, how to restore securefile to normal file?
Hero
A. Clay Stephenson
Acclaimed Contributor

Re: file encryption ?

While the crypt algorithm is not all that robust by today's standards, essentially the answer is "forget the key, forget the file." Note that if the answer were anything different then the encryption would be of very limited value because the same techniques you use would be the ones that the bad guys would use also.
If it ain't broke, I can fix that.