Re: Is there any way...

Sergei Viznyuk (
Tue, 24 Feb 1998 19:18:24 -0500 (EST)

} What the heck are you trying to do?

I guess I better explain..

I want a very simple thing: to be able to
encrypt AND DECRYPT password.
Now, if I am, say, user "smitty"
and I want to
encrypt my password for some application
and store it into some readable by
everyone file. Other users will do
the same for their passwords.
Now, how to make it so that
only the owner can decrypt his/her own
password providing the source code
for the programs which will do encyption
and decryption
should be publicly available?

My thought was to use some global
variable which gets assigned to
user process by the kernel
(hence my posting to this list)
and which is completely unknown
for other users/processes as a seed to the
"crypt". Obviously, I can
use neither PID nor UID for the
purpose because they are known
to other users..

Thanks for any suggestions,

} > I need to generate some unique number or string
} > based on real user ID of the process, so
} > that
} > 1. the number is independent of OS version
} > 2. reproducible
} > 3. other user ID would not be able to generate
} > the same number even if he got a hold on
} > a source code
} >
} > is there anything which can help me with that?
} >
} > Thanks,
} > Sergei

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to