- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- File ecncryption in UNIX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2007 09:15 AM
12-18-2007 09:15 AM
File ecncryption in UNIX
i wnat to use DES or RSA signature methods.
please help me
Best Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2007 09:23 AM
12-18-2007 09:23 AM
Re: File ecncryption in UNIX
cat filename | crypt > filename.crypt
It'll prompt for a key. I don't believe there's a "decrypt" command in HP-UX; if you want to read the file you can use 'vi -x filename.crypt' and it'll prompt for the key again. I'm not sure if there's any way to implement DES or RSA with crypt, though; perhaps someone else knows of another software tool you could install.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2007 09:29 AM
12-18-2007 09:29 AM
Re: File ecncryption in UNIX
You could use the EVFS, see link to check compatibilty with you requirements.
http://h20338.www2.hp.com/hpux11i/cache/324629-0-0-225-121.html?jumpid=reg_R1002_USEN
Mike.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2007 09:45 AM
12-18-2007 09:45 AM
Re: File ecncryption in UNIX
For your question, not knowing why you need to encrypt, I would suggest OpenSSL. It will provide RC4 or AES encryption and is readily available for multiple platforms even as freeware.
Best of luck on this.
Regards,
-dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2007 11:06 AM
12-18-2007 11:06 AM
Re: File ecncryption in UNIX
Might want to consider PGP.
http://software.hp.com
Search for Internet Express
Pick your OS and download ixPGP software. It is quite useful and compatible with commercial encryption software.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2007 10:00 PM
12-18-2007 10:00 PM
Re: File ecncryption in UNIX
> Search for Internet Express
>
> Pick your OS and download ixPGP software.
Have you tried this lately? For "HP-UX
Internet Express for HP-UX 11i v1", I see a
GnuPG (which might be suitable), but no
*PGP*.
> which tools is proper for encryprtion and
> decryption file in unix?
The answer to this question may depend on a
few unknowns, like why you want to encrypt
something, what you want to encrypt, how
secure the encryption needs to be, and so on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2007 10:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 12:13 AM
12-19-2007 12:13 AM
Re: File ecncryption in UNIX
thanks for you helps.
i need to automatically encrypt the file at the end of day.
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 12:40 AM
12-19-2007 12:40 AM
Re: File ecncryption in UNIX
make a script with these commands:
#crypt key
#rm file
where,
key is password for file to undecrypt
file is file to encode
crypt_file is file in encoded form
And make a entry in crontab so that it will execute at each dayend.crontab entry will be:
59 23 * * * Script_path
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 01:21 AM
12-19-2007 01:21 AM
Re: File ecncryption in UNIX
I want to use DES or RSA for encryption. because after encryption it we should send it to another to decrypt it.
Thanks
Best Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 09:19 AM
12-19-2007 09:19 AM
Re: File ecncryption in UNIX
For example, to encrypt using a symmetric encryption algorithm like DES:
openssl enc -e -des -in plaintext.txt -out encrypted.dat -pass file:/well/protected/cryptokey.txt
And to decrypt:
openssl enc -d -des -in encrypted.dat -out decrypted.txt -pass file:/well/protected/cryptokey.txt
Note that the simple DES is too weak for today's technology. Even triple-DES (des3) is barely adequate for low-level protection.
Each sub-command of OpenSSL has a separate man page: to get more information about "openssl enc", use "man enc" after installing OpenSSL.
To use an asymmetric encryption algorithm like RSA, you must first generate a pair of keys. A proper RSA key pair has an interesting feature: when data is encrypted using one half of the key pair, it cannot be decrypted using that same key... you must use the _other_ half of the key pair to decrypt the data. Usually, one half of the key pair is called "private key" and the other "public key".
In addition, encrypting large amounts of data using plain RSA is not very efficient: usually, some symmetric encryption algorithm is used to encrypt the data with a random key ("session key") which is used only once. Then the key is protected using RSA and the encrypted key is sent along with the data. The recipient then uses RSA to decrypt the session key, then uses the session key to decrypt the data.
"RSA signature" may not be an encryption method at all: it's more like a way to prove that the data is from you and it has not been tampered with. If you need this, OpenSSL has tools for this too.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 09:36 AM
12-19-2007 09:36 AM
Re: File ecncryption in UNIX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 11:08 AM
12-19-2007 11:08 AM
Re: File ecncryption in UNIX
In our shop, there is no manual encryption, all file encryptions are scripted.
-dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 12:12 PM
12-19-2007 12:12 PM
Re: File ecncryption in UNIX
> file at the end of the day" then why not
> just use EVFS and store it on the device
> encrypted?
Perhaps:
> [...] because after encryption it we
> should send it to another to decrypt it.
Sometimes it pays to look at the actual
requirements provided (eventually).
In this situation, I'd probably use GnuPG, as
cited (repeatedly) above. It's a public-key
system (RSA). Other solutions also exist, of
course. Another consideration is the
software in use or available at the far end,
where the decryption is to be done. (We can
_assume_ that it's also HP-UX, but we
shouldn't _need_ to assume anything.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 09:54 PM
12-19-2007 09:54 PM
Re: File ecncryption in UNIX
Thank you for helps.
Now i install GnuPG in HP-UX. How we can use it for encryption?
Please send me a document including command for GnuPG?
Thanks
Best Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2007 09:56 PM
12-19-2007 09:56 PM
Re: File ecncryption in UNIX
Here is the documentation for this tool.
http://www.gnupg.org/(en)/documentation/index.html
Shri.