The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
User name and password encryption satguyz High Level Programming 5 02-23-2007 11:10 AM
PGP encryption/decryption solaris 9 frustrated1 SUN Solaris 0 09-30-2006 07:45 PM
Password safe encryption strength keelba UNIX for Dummies Questions & Answers 1 10-19-2005 01:09 PM
File Encryption and Decryption in UNIX. abidmalik UNIX for Dummies Questions & Answers 3 08-27-2002 04:09 PM
Zipping with password or encryption dsimpg1 UNIX for Dummies Questions & Answers 2 09-21-2001 12:57 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-02-2005
domivv domivv is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 9
Password encryption/decryption in flat-text files

Dear all,
If anyone has some ideas for me how to tackle the following situation:
Imagine a type of client-server application. The client application is started by a human operator with all the necessary LDAP/Kerberos in place. The server application is started automatically as a daemon process. This server application talks to an Oracle database for which it needs a connection string, username and password as a minimum.
This information is stored in a flat-text file on the system, but everything is readable : eg. EXAMPLE_DB:usernameass

Now, I know we must consider all the security all ready in place (firewalls, unix accounts with passwords, files made read-only), but ... is there some way to make the password in the flat-text file unreadable aka. encrypted and have it decrypted when needed ? The problem is that the password, when encrypted, must first be decrypted before it becomes usable to logon to the database.

Quite a lot eh?

Dominik
  #2 (permalink)  
Old 03-03-2005
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
I think your security model has a big problem.

Yes, you could use DES-3 to encrypt a user/name password, or some other public key encryption scheme, but the user would have to enter the private key. Which means they have to in effect enter a password. Since they have to enter something:

Why not just let Oracle authenticate each user, like it would normally do? Just ask let Oracle ask the user for the credentials or you ask them and pass them to Oracle -

why do you have to have an intervening layer?
  #3 (permalink)  
Old 03-04-2005
Balamurugan Balamurugan is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 7
Hi ,
You can use the crypt command in unix to do this.

ex.

Create a file which has the clear passwd (/tmp/testpw)
encrypt

crypt Key<clear_passwd.file > encrypt_file

crypt 123 < /tmp/testpw > /tmp/testcr

Now you can remove the clear passwd file .. But you should remeber the key.

You can connect to the oracle in the following way.

sqlplus "user_name/`crypt 123 < /tmp/testcr`"

SQL*Plus: Release 9.2.0.5.0 - Production on Fri Mar 4 08:32:25 2005

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production

SQL>


Please check is this helps you.

Thanks and Regards

Bala
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0