>> > why cant u use some kind of encryption(MD5, SHA etc) before puting it
>> > as a node??
[quoted text clipped - 3 lines]
>
> Yes.. its not possible.. so.. you can use other encyptions like DES..
As others have been trying to point out, you can't encrypt the password even
with DES or any other technique because doing so requires a key for
decryption which must also be stored, or have the user enter. Simply having
the user enter the password is the best choice in this case. (Although if
you have many passwords and other data to secure you can store them all and
have the user enter the main key, but that's a different story.)
> My application uses MD5 encryption for stroing the password in DB and
> when the user log in to the application, the password supplied by the
> user will be encrypted with MD5 and compared with DB - this way I'm
> authenticating.
This technique is perfectly fine and is very common for authentication. It
just doesn't apply to the OP's problem which is to store a password that can
be re-sent to another application.
Matt Humphrey matth@ivizNOSPAM.com http://www.iviz.com/
jiji - 11 Sep 2006 12:39 GMT
> >> > why cant u use some kind of encryption(MD5, SHA etc) before puting it
> >> > as a node??
[quoted text clipped - 10 lines]
> you have many passwords and other data to secure you can store them all and
> have the user enter the main key, but that's a different story.)
Why cant we use some key for encryption atleast for a login session??
See, If its a web application, then you can use session id as
encryption key..
or you can use user name as encryption key..
In one of the Application im currently working, the key for encryption
will be generated as following
Key : head + userName + mid + session id + tail
head, mid, tail are 10 digit numbers which will be generated randomly
on each application startup(means when u start the web application,
these numbers will be generated and stored in a static variable). These
numbers are used to ensure the security of the system.
And for all other encryptions, I use this key..
for each user login, userName and session id will change and it will
be valid as long as the session is alive.
Jiji
Oliver Wong - 11 Sep 2006 21:15 GMT
>> As others have been trying to point out, you can't encrypt the password
>> even
[quoted text clipped - 7 lines]
>
> Why cant we use some key for encryption atleast for a login session??
Because you'd have to store that key somewhere in order to later use it
for decryption.
Either you have a secure place to store that key, or you don't. If you
do have a secure place to store that key, then you might as well just store
the original password there instead, and save yourself all this hassle. If
you don't have a secure place to store the key, then you haven't gained any
security at all, because any malicious user could gain access to your key,
and decrypt your original password.
- Oliver